http://blog.csdn.net/jerryvon/article/details/8755548
Organized some other animations, using templates for the flip template, but CSS3 different
[CSS]View Plaincopyprint?
- /***************** fade-in Fade ********************/
- . Effect5. Back {
- -webkit-transform:rotate3d (1,0,0,0);
- }
- . Effect5. Show. front{
- -webkit-animation:effect5Front 0.6s linear forwards;
- }
- @-webkit-keyframes effect5front{
- 0% {opacity: 1;}
- 100% {opacity: 0;}
- }
- /***************** to the left and push into the ********************/.
- . transition.effect6 { overflow: hidden;}
- . Effect6. Show. Front,
- . Effect6. Show. back{
- -webkit-animation-duration: 0.4s;
- -webkit-animation-timing-function:ease-out;
- -webkit-animation-fill-mode:forwards;
- }
- . Effect6. Show. front{
- -webkit-animation-name:effect6Front;
- }
- . Effect6. Show. Back {
- -webkit-animation-name:effect6Back;
- }
- @-webkit-keyframes effect6front{
- 0% {-webkit-transform:translatex (0);}
- 100% {-webkit-transform:translatex (-100%);}
- }
- @-webkit-keyframes effect6back{
- 0% {-webkit-transform:translatex (100%);}
- 100% {-webkit-transform:translatex (0px);}
- }
- /***************** from a corner to cover the original picture ********************/
- . Effect7. front{ Z-index: 1;}
- . Effect7. back{ Z-index: 2;}
- . Effect7. Show. back{
- -webkit-animation:effect7Back 0.4s ease-out forwards;
- }
- @-webkit-keyframes effect7back{
- 0% {-webkit-transform:rotate (40deg) scale (1.5) Translate (200px,10px); opacity: 0;}
- 100% {-webkit-transform:rotate (0deg) scale (1) Translate (0,0); opacity: 1;}
- }
- /***************** Card effect 1 ********************/
- . Effect8. Back {
- -webkit-transform:rotate3d (1,0,0,0);
- }
- . Effect8. Front {
- Z-index: 1;
- }
- . Effect8. Back {
- Z-index: 1;
- }
- . Effect8. Show. front{
- -webkit-animation:effect8Front 0.8s ease-in-out forwards;
- }
- @-webkit-keyframes effect8front{
- 0% {-webkit-transform:translatex (0); Z-index: 3;}
- 50% {-webkit-transform:rotatez (-5deg) TranslateX (-339px); Z-index: 3;}
- 51% { z-index: 1;}
- 100% {-webkit-transform:rotatez (0deg) TranslateX (0px); Z-index: 1;}
- }
- /***************** Card Effect 2 ********************/
- . Effect9. Back {
- -webkit-transform:rotate3d (1,0,0,0);
- }
- . Effect9. Show. Front,
- . Effect9. Show. back{
- -webkit-animation-duration: 0.8s;
- -webkit-animation-timing-function:ease-in-out;
- -webkit-animation-fill-mode:forwards;
- -webkit-transform-origin: 0% 100%;
- }
- . Effect9. Show. front{
- -webkit-animation-name:effect9Front;
- }
- . Effect9. Show. Back {
- -webkit-animation-name:effect9Back;
- }
- @-webkit-keyframes effect9front{
- 0% { z-index: 3;}
- 50% {-webkit-transform:rotatez (-75deg); Z-index: 3;}
- 51% { z-index: 1;}
- 100% {-webkit-transform:rotatez (0deg); Z-index: 1;}
- }
- @-webkit-keyframes effect9back{
- 0% { z-index: 1;}
- 50% {-webkit-transform:rotatez (20deg); Z-index: 1;}
- 51% { z-index: 3;}
- 100% {-webkit-transform:rotatez (0deg); Z-index: 3;}
- }
- /***************** fade out Effect 2 ********************/
- . Effect. Back {
- -webkit-transform:rotate3d (1,0,0,0);
- }
- . Effect. Show. front{
- -webkit-animation:effect10Front 0.4s ease-in-out forwards;
- }
- @-webkit-keyframes effect10front{
- 0% {opacity:1;}
- 100% {-webkit-transform:rotatez (3deg) scale (1.5); opacity:0;}
- }
- /***************** effect11 ********************/
- . Effect. Back {
- -webkit-transform:rotate3d (1,0,0,0);
- }
- . Effect. Show. front{
- -webkit-transform-origin: 0% 100%;
- }
- . Effect. Show. front{
- -webkit-animation:effect11Front 1s ease-in-out forwards;
- }
- @-webkit-keyframes effect11front{
- 0% { z-index: 3;-webkit-animation-timing-function:ease-in}
- 20% {-webkit-transform:rotatez (180deg); z-index: 3;-webkit-animation-timing-function:ease-out}
- 21% { z-index: 1;}
- 40% {-webkit-transform:rotatez (370deg); Z-index: 1;}
- 60% {-webkit-transform:rotatez (356deg); Z-index: 1;}
- 80% {-webkit-transform:rotatez (360deg); Z-index: 1;}
- 95% {-webkit-transform:rotatez (359deg); Z-index: 1;}
- 100% {-webkit-transform:rotatez (360deg); Z-index: 1;}
- }
- /***************** Center point Diffusion Display (mask) ********************/
- . Effect.back{
- -webkit-transform:rotate3d (1,0,0,0);
- }
- . Effect. Back{
- -webkit-mask-image: url (... /.. /assets/circle-mask.png);
- -webkit-mask-repeat: no-repeat;
- -webkit-mask-Position: 50% 50%;
- -webkit-mask-Size: 1500px;
- -webkit-animation-duration: 1s;
- }
- . Effect. Show. back{
- -webkit-animation-name:iris;
- Z-index:3;
- }
- @-webkit-keyframes Iris {
- 0% {-webkit-mask-size: 0;-webkit-animation-timing-function:ease-in-out;}
- 100% {-webkit-mask-size: 1500px;}
- }
CSS3 Transition effect (other effects)