के साथ काम नहीं कर रहे हैं मैं वर्तमान में सभी संभावित ब्राउज़रों में अपने ऐप का परीक्षण कर रहा हूं और मुझे यह देखना है कि कोणीय एनिमेशन सफारी आईओएस 9.3 में अपेक्षित व्यवहार नहीं करते हैं। घंटों के बाद और इसे हल करने की कोशिश करने के घंटे मैं हाथ में मदद मांगा। अग्रिम में धन्यवाद।कोणीय 4 एनिमेशन सफारी आईओएस 9.3
मेरे कोड पढ़ता है:
package.json
"dependencies": {
"@angular/animations": "^4.3.2",
"@angular/cdk": "^2.0.0-beta.8",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/material": "^2.0.0-beta.8",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"@ngx-meta/core": "^0.4.0-rc.2",
"@ngx-translate/core": "^7.1.0",
"@ngx-translate/http-loader": "^1.0.1",
"angular2-moment": "^1.6.0",
"core-js": "^2.4.1",
"express": "^4.15.4",
"lodash": "^4.17.4",
"ng2-pdf-viewer": "^1.1.1",
"ng2-translate": "^5.0.0",
"rxjs": "^5.4.1",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.14"
},
landing.component.ts
import { Component, HostBinding, ChangeDetectionStrategy } from '@angular/core';
import { stateTransition } from '../routing.animations';
@Component({
selector: 'cp-landing',
templateUrl: './landing.component.html',
styleUrls: ['./landing.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
animations: [ stateTransition() ]
})
export class LandingComponent {
@HostBinding('@stateTransition') '';
}
routing.animations.ts
import { trigger, state, animate, style, transition } from '@angular/animations';
export function stateTransition() {
return trigger('stateTransition', [
state('void', style({
transform: 'translateY(50%)',
opacity: 0
})),
state('*', style({
transform: 'translateY(0%)',
opacity: 1
})),
// enter animation
transition('void => *', animate('.5s 500ms')),
// exit animation
transition('* => void', animate('.5s'))
]);
}
मैंने एक पहेली के साथ आने की कोशिश की लेकिन मैं त्रुटि को पुन: उत्पन्न करने में सक्षम नहीं हूं।
मैंने ऐसा किया और इसके लिए @ कोणीय/प्लेटफ़ॉर्म-ब्राउज़र को भी डाउनग्रेड किया, लेकिन अंत में एनीमेशन पूरी तरह से काम करना बंद कर दिया। कोई विचार? एचटीएमएल तत्व सिर्फ अंतिम वांछित गुण प्राप्त करता है लेकिन बिना किसी एनीमेशन के। –