11<template >
2- <Page class =" page" loaded =" pageLoaded" ref =" page" >
2+ <Page class =" page" loaded =" pageLoaded" ref =" page" >
33 <ActionBarSecond :title =" '动画效果'" ></ActionBarSecond >
44
5- <GridLayout colums =" *" rows =" *" id = " dd " >
5+ <GridLayout colums =" *" rows =" *" >
66 <Label class =" animateicon" :text =" msg" col =" 0" row =" 0" />
77 <Image class =" animateicon" src =" ~/assets/images/NativeScript-Vue.png" />
88 </GridLayout >
@@ -26,4 +26,51 @@ export default {
2626 </script >
2727
2828<style scoped lang="scss">
29+ .animateicon {
30+ color : red ;
31+ animation-name : bounceInOpacity;
32+ animation-duration : 1s ;
33+ animation-delay : 0.5s ;
34+ }
35+ @keyframes bounceInOpacity {
36+ from,
37+ 20%,
38+ 40%,
39+ 60%,
40+ 80%,
41+ to {
42+ -webkit-animation-timing-function : cubic-bezier (0.215 , 0.61 , 0.355 , 1 );
43+ animation-timing-function : cubic-bezier (0.215 , 0.61 , 0.355 , 1 );
44+ }
45+
46+ 0% {
47+ -webkit-transform : scale3d (0.3 , 0.3 , 0.3 );
48+ transform : scale3d (0.3 , 0.3 , 0.3 );
49+ }
50+
51+ 20% {
52+ -webkit-transform : scale3d (1.1 , 1.1 , 1.1 );
53+ transform : scale3d (1.1 , 1.1 , 1.1 );
54+ }
55+
56+ 40% {
57+ -webkit-transform : scale3d (0.9 , 0.9 , 0.9 );
58+ transform : scale3d (0.9 , 0.9 , 0.9 );
59+ }
60+
61+ 60% {
62+ -webkit-transform : scale3d (1.03 , 1.03 , 1.03 );
63+ transform : scale3d (1.03 , 1.03 , 1.03 );
64+ }
65+
66+ 80% {
67+ -webkit-transform : scale3d (0.97 , 0.97 , 0.97 );
68+ transform : scale3d (0.97 , 0.97 , 0.97 );
69+ }
70+
71+ to {
72+ -webkit-transform : scale3d (1 , 1 , 1 );
73+ transform : scale3d (1 , 1 , 1 );
74+ }
75+ }
2976 </style >
0 commit comments