一、animates.css animate.css是來自dropbox的工程師Daniel Eden開發的一款CSS3的動畫效果小類庫。包含了60多款不同類型的CSS3動畫,包括:晃動,閃動,各種淡出淡出效果,如果你想快速的整合各種CSS3動畫特效的話,使用它即可方便的實現。 查看演示: http
一、animates.css
animate.css是來自dropbox的工程師Daniel Eden開發的一款CSS3的動畫效果小類庫。包含了60多款不同類型的CSS3動畫,包括:晃動,閃動,各種淡出淡出效果,如果你想快速的整合各種CSS3動畫特效的話,使用它即可方便的實現。
查看演示:
https://daneden.github.io/animate.css/
github地址:
https://github.com/daneden/animate.css
二、magic.css動畫庫
查看演示:
http://www.17sucai.com/pins/demoshow/10001
github地址:
https://github.com/miniMAC/magic
三、Effect.css
針對不同UI的CSS3動畫和過渡效果集,包含了豐富的CSS3動畫和過渡效果,包括:
- Modal
- overlay
- button
- list
- listscroll
- Caption
- 等等
查看演示:
http://www.gbtags.com/gb/linkviewer/3147.htm
四、hover.css
Hover.css是一套使用CSS3動畫實現的Hover特效集錦,包含了:
- 2D變形
- 邊框過渡效果
- 陰影過渡效果
- 頁腳翻轉效果
查看演示:
http://ianlunn.github.io/Hover/
github地址:
https://github.com/IanLunn/Hover
五、常用動畫
/* animation */ .a-bounce,.a-flip,.a-flash,.a-shake,.a-swing,.a-wobble,.a-ring{-webkit-animation:1s ease;-moz-animation:1s ease;-ms-animation:1s ease;animation:1s ease;} .a-fadein,.a-fadeinT,.a-fadeinR,.a-fadeinB,.a-fadeinL,.a-bouncein,.a-bounceinT,.a-bounceinR,.a-bounceinB,.a-bounceinL,.a-rotatein,.a-rotateinLT,.a-rotateinLB,.a-rotateinRT,.a-rotateinRB,.a-flipin,.a-flipinX,.a-flipinY{-webkit-animation:1s ease-out backwards;-moz-animation:1s ease-out backwards;-ms-animation:1s ease-out backwards;animation:1s ease-out backwards;} .a-fadeout,.a-fadeoutT,.a-fadeoutR,.a-fadeoutB,.a-fadeoutL,.a-bounceout,.a-bounceoutT,.a-bounceoutR,.a-bounceoutB,.a-bounceoutL,.a-rotateout,.a-rotateoutLT,.a-rotateoutLB,.a-rotateoutRT,.a-rotateoutRB,.a-flipout,.a-flipoutX,.a-flipoutY{-webkit-animation:1s ease-in forwards;-moz-animation:1s ease-in forwards;-ms-animation:1s ease-in forwards;animation:1s ease-in forwards;} /* 淡入 */ .a-fadein{-webkit-animation-name:fadein;-moz-animation-name:fadein;-ms-animation-name:fadein;animation-name:fadein;} /* 淡入-從上 */ .a-fadeinT{-webkit-animation-name:fadeinT;-moz-animation-name:fadeinT;-ms-animation-name:fadeinT;animation-name:fadeinT;} /* 淡入-從右 */ .a-fadeinR{-webkit-animation-name:fadeinR;-moz-animation-name:fadeinR;-ms-animation-name:fadeinR;animation-name:fadeinR;} /* 淡入-從下 */ .a-fadeinB{-webkit-animation-name:fadeinB;-moz-animation-name:fadeinB;-ms-animation-name:fadeinB;animation-name:fadeinB;} /* 淡入-從左 */ .a-fadeinL{-webkit-animation-name:fadeinL;-moz-animation-name:fadeinL;-ms-animation-name:fadeinL;animation-name:fadeinL;} /* 淡出 */ .a-fadeout{-webkit-animation-name:fadeout;-moz-animation-name:fadeout;-ms-animation-name:fadeout;animation-name:fadeout;} /* 淡出-向上 */ .a-fadeoutT{-webkit-animation-name:fadeoutT;-moz-animation-name:fadeoutT;-ms-animation-name:fadeoutT;animation-name:fadeoutT;} /* 淡出-向右 */ .a-fadeoutR{-webkit-animation-name:fadeoutR;-moz-animation-name:fadeoutR;-ms-animation-name:fadeoutR;animation-name:fadeoutR;} /* 淡出-向下 */ .a-fadeoutB{-webkit-animation-name:fadeoutB;-moz-animation-name:fadeoutB;-ms-animation-name:fadeoutB;animation-name:fadeoutB;} /* 淡出-向左 */ .a-fadeoutL{-webkit-animation-name:fadeoutL;-moz-animation-name:fadeoutL;-ms-animation-name:fadeoutL;animation-name:fadeoutL;} /* 彈跳 */ .a-bounce{-webkit-animation-name:bounce;-moz-animation-name:bounce;-ms-animation-name:bounce;animation-name:bounce;} /* 彈入 */ .a-bouncein{-webkit-animation-name:bouncein;-moz-animation-name:bouncein;-ms-animation-name:bouncein;animation-name:bouncein;} /* 彈入-從上 */ .a-bounceinT{-webkit-animation-name:bounceinT;-moz-animation-name:bounceinT;-ms-animation-name:bounceinT;animation-name:bounceinT;} /* 彈入-從右 */ .a-bounceinR{-webkit-animation-name:bounceinR;-moz-animation-name:bounceinR;-ms-animation-name:bounceinR;animation-name:bounceinR;} /* 彈入-從下 */ .a-bounceinB{-webkit-animation-name:bounceinB;-moz-animation-name:bounceinB;-ms-animation-name:bounceinB;animation-name:bounceinB;} /* 彈入-從左 */ .a-bounceinL{-webkit-animation-name:bounceinL;-moz-animation-name:bounceinL;-ms-animation-name:bounceinL;animation-name:bounceinL;} /* 彈出 */ .a-bounceout{-webkit-animation-name:bounceout;-moz-animation-name:bounceout;-ms-animation-name:bounceout;animation-name:bounceout;} /* 彈出-向上 */ .a-bounceoutT{-webkit-animation-name:bounceoutT;-moz-animation-name:bounceoutT;-ms-animation-name:bounceoutT;animation-name:bounceoutT;} /* 彈出-向右 */ .a-bounceoutR{-webkit-animation-name:bounceoutR;-moz-animation-name:bounceoutR;-ms-animation-name:bounceoutR;animation-name:bounceoutR;} /* 彈出-向下 */ .a-bounceoutB{-webkit-animation-name:bounceoutB;-moz-animation-name:bounceoutB;-ms-animation-name:bounceoutB;animation-name:bounceoutB;} /* 彈出-向左 */ .a-bounceoutL{-webkit-animation-name:bounceoutL;-moz-animation-name:bounceoutL;-ms-animation-name:bounceoutL;animation-name:bounceoutL;} /* 轉入 */ .a-rotatein{-webkit-animation-name:rotatein;-moz-animation-name:rotatein;-ms-animation-name:rotatein;animation-name:rotatein;} /* 轉入-從左上 */ .a-rotateinLT{-webkit-animation-name:rotateinLT;-moz-animation-name:rotateinLT;-ms-animation-name:rotateinLT;animation-name:rotateinLT;} /* 轉入-從左下 */ .a-rotateinLB{-webkit-animation-name:rotateinLB;-moz-animation-name:rotateinLB;-ms-animation-name:rotateinLB;animation-name:rotateinLB;} /* 轉入-從右上 */ .a-rotateinRT{-webkit-animation-name:rotateinRT;-moz-animation-name:rotateinRT;-ms-animation-name:rotateinRT;animation-name:rotateinRT;} /* 轉入-從右下*/ .a-rotateinRB{-webkit-animation-name:rotateinRB;-moz-animation-name:rotateinRB;-ms-animation-name:rotateinRB;animation-name:rotateinRB;} /* 轉出 */ .a-rotateout{-webkit-animation-name:rotateout;-moz-animation-name:rotateout;-ms-animation-name:rotateout;animation-name:rotateout;} /* 轉出-向左上 */ .a-rotateoutLT{-webkit-animation-name:rotateoutLT;-moz-animation-name:rotateoutLT;-ms-animation-name:rotateoutLT;animation-name:rotateoutLT;} /* 轉出-向左下 */ .a-rotateoutLB{-webkit-animation-name:rotateoutLB;-moz-animation-name:rotateoutLB;-ms-animation-name:rotateoutLB;animation-name:rotateoutLB;} /* 轉出-向右上 */ .a-rotateoutRT{-webkit-animation-name:rotateoutRT;-moz-animation-name:rotateoutRT;-ms-animation-name:rotateoutRT;animation-name:rotateoutRT;} /* 轉出-向右下 */ .a-rotateoutRB{-webkit-animation-name:rotateoutRB;-moz-animation-name:rotateoutRB;-ms-animation-name:rotateoutRB;animation-name:rotateoutRB;} /* 翻轉 */ .a-flip{-webkit-animation-name:flip;-moz-animation-name:flip;-ms-animation-name:flip;animation-name:flip;} /* 翻入-X軸 */ .a-flipinX{-webkit-animation-name:flipinX;-moz-animation-name:flipinX;-ms-animation-name:flipinX;animation-name:flipinX;} /* 翻入-Y軸 */ .a-flipin,.a-flipinY{-webkit-animation-name:flipinY;-moz-animation-name:flipinY;-ms-animation-name:flipinY;animation-name:flipinY;} /* 翻出-X軸 */ .a-flipoutX{-webkit-animation-name:flipoutX;-moz-animation-name:flipoutX;-ms-animation-name:flipoutX;animation-name:flipoutX;} /* 翻出-Y軸 */ .a-flipout,.a-flipoutY{-webkit-animation-name:flipoutY;-moz-animation-name:flipoutY;-ms-animation-name:flipoutY;animation-name:flipoutY;} /* 閃爍 */ .a-flash{-webkit-animation-name:flash;-moz-animation-name:flash;-ms-animation-name:flash;animation-name:flash;} /* 震顫 */ .a-shake{-webkit-animation-name:shake;-moz-animation-name:shake;-ms-animation-name:shake;animation-name:shake;} /* 搖擺 */ .a-swing{-webkit-animation-name:swing;-moz-animation-name:swing;-ms-animation-name:swing;animation-name:swing;} /* 搖晃 */ .a-wobble{-webkit-animation-name:wobble;-moz-animation-name:wobble;-ms-animation-name:wobble;animation-name:wobble;} /* 震鈴 */ .a-ring{-webkit-animation-name:ring;-moz-animation-name:ring;-ms-animation-name:ring;animation-name:ring;} /* define */ /* 淡入 */ @-webkit-keyframes fadein{ 0%{opacity:0;} 100%{opacity:1;} } @-moz-keyframes fadein{ 0%{opacity:0;} 100%{opacity:1;} } @-ms-keyframes fadein{ 0%{opacity:0;} 100%{opacity:1;} } @keyframes fadein{ 0%{opacity:0;} 100%{opacity:1;} } /* 淡入-從上 */ @-webkit-keyframes fadeinT{ 0%{opacity:0;-webkit-transform:translateY(-100px);} 100%{opacity:1;-webkit-transform:translateY(0);} } @-moz-keyframes fadeinT{ 0%{opacity:0;-moz-transform:translateY(-100px);} 100%{opacity:1;-moz-transform:translateY(0);} } @-ms-keyframes fadeinT{ 0%{opacity:0;-ms-transform:translateY(-100px);} 100%{opacity:1;-ms-transform:translateY(0);} } @keyframes fadeinT{ 0%{opacity:0;transform:translateY(-100px);} 100%{opacity:1;transform:translateY(0);} } /* 淡入-從右 */ @-webkit-keyframes fadeinR{ 0%{opacity:0;-webkit-transform:translateX(100px);} 100%{opacity:1;-webkit-transform:translateX(0);} } @-moz-keyframes fadeinR{ 0%{opacity:0;-moz-transform:translateX(100px);} 100%{opacity:1;-moz-transform:translateX(0);} } @-ms-keyframes fadeinR{ 0%{opacity:0;-ms-transform:translateX(100px);} 100%{opacity:1;-ms-transform:translateX(0);} } @keyframes fadeinR{ 0%{opacity:0;transform:translateX(100px);} 100%{opacity:1;transform:translateX(0);} } /* 淡入-從下 */ @-webkit-keyframes fadeinB{ 0%{opacity:0;-webkit-transform:translateY(100px);} 100%{opacity:1;-webkit-transform:translateY(0);} } @-moz-keyframes fadeinB{ 0%{opacity:0;-moz-transform:translateY(100px);} 100%{opacity:1;-moz-transform:translateY(0);} } @-ms-keyframes fadeinB{ 0%{opacity:0;-ms-transform:translateY(100px);} 100%{opacity:1;-ms-transform:translateY(0);} } @keyframes fadeinB{ 0%{opacity:0;transform:translateY(100px);} 100%{opacity:1;transform:translateY(0);} } /* 淡入-從左 */ @-webkit-keyframes fadeinL{ 0%{opacity:0;-webkit-transform:translateX(-100px);} 100%{opacity:1;-webkit-transform:translateX(0);} } @-moz-keyframes fadeinL{ 0%{opacity:0;-moz-transform:translateX(-100px);} 100%{opacity:1;-moz-transform:translateX(0);} } @-ms-keyframes fadeinL{ 0%{opacity:0;-ms-transform:translateX(-100px);} 100%{opacity:1;-ms-transform:translateX(0);} } @keyframes fadeinL{ 0%{opacity:0;transform:translateX(-100px);} 100%{opacity:1;transform:translateX(0);} } /* 淡出 */ @-webkit-keyframes fadeout{ 0%{opacity:1;} 100%{opacity:0;} } @-moz-keyframes fadeout{ 0%{opacity:1;} 100%{opacity:0;} } @-ms-keyframes fadeout{ 0%{opacity:1;} 100%{opacity:0;} } @keyframes fadeout{ 0%{opacity:1;} 100%{opacity:0;} } /* 淡出-向上 */ @-webkit-keyframes fadeoutT{ 0%{opacity:1;-webkit-transform:translateY(0);} 100%{opacity:0;-webkit-transform:translateY(-100px);} } @-moz-keyframes fadeoutT{ 0%{opacity:1;-moz-transform:translateY(0);} 100%{opacity:0;-moz-transform:translateY(-100px);} } @-ms-keyframes fadeoutT{ 0%{opacity:1;-ms-transform:translateY(0);} 100%{opacity:0;-ms-transform:translateY(-100px);} } @keyframes fadeoutT{ 0%{opacity:1;transform:translateY(0);} 100%{opacity:0;transform:translateY(-100px);} } /* 淡出-向右 */ @-webkit-keyframes fadeoutR{ 0%{opacity:1;-webkit-transform:translateX(0);} 100%{opacity:0;-webkit-transform:translateX(100px);} } @-moz-keyframes fadeoutR{ 0%{opacity:1;-moz-transform:translateX(0);} 100%{opacity:0;-moz-transform:translateX(100px);} } @-ms-keyframes fadeoutR{ 0%{opacity:1;-ms-transform:translateX(0);} 100%{opacity:0;-ms-transform:translateX(100px);} } @keyframes fadeoutR{ 0%{opacity:1;transform:translateX(0);} 100%{opacity:0;transform:translateX(100px);} } /* 淡出-向下 */ @-webkit-keyframes fadeoutB{ 0%{opacity:1;-webkit-transform:translateY(0);} 100%{opacity:0;-webkit-transform:translateY(100px);} } @-moz-keyframes fadeoutB{ 0%{opacity:1;-moz-transform:translateY(0);} 100%{opacity:0;-moz-transform:translateY(100px);} } @-ms-keyframes fadeoutB{ 0%{opacity:1;-ms-transform:translateY(0);} 100%{opacity:0;-ms-transform:translateY(100px);} } @keyframes fadeoutB{ 0%{opacity:1;transform:translateY(0);} 100%{opacity:0;transform:translateY(100px);} } /* 淡出-向左 */ @-webkit-keyframes fadeoutL{ 0%{opacity:1;-webkit-transform:translateX(0);} 100%{opacity:0;-webkit-transform:translateX(-100px);} } @-moz-keyframes fadeoutL{ 0%{opacity:1;-moz-transform:translateX(0);} 100%{opacity:0;-moz-transform:translateX(-100px);} } @-ms-keyframes fadeoutL{ 0%{opacity:1;-ms-transform:translateX(0);} 100%{opacity:0;-ms-transform:translateX(-100px);} } @keyframes fadeoutL{ 0%{opacity:1;transform:translateX(0);} 100%{opacity:0;transform:translateX(-100px);} } /* 彈跳 */ @-webkit-keyframes bounce{ 0%,20%,50%,80%,100%{-webkit-transform:translateY(0);} 40%{-webkit-transform:translateY(-30px);} 60%{-webkit-transform:translateY(-15px);} } @-moz-keyframes bounce{ 0%,20%,50%,80%,100%{-moz-transform:translateY(0);} 40%{-moz-transform:translateY(-30px);} 60%{-moz-transform:translateY(-15px);} } @-ms-keyframes bounce{ 0%,20%,50%,80%,100%{-ms-transform:translateY(0);} 40%{-ms-transform:translateY(-30px);} 60%{-ms-transform:translateY(-15px);} } @keyframes bounce{ 0%,20%,50%,80%,100%{transform:translateY(0);} 40%{transform:translateY(-30px);} 60%{transform:translateY(-15px);} } /* 彈入 */ @-webkit-keyframes bouncein{ 0%{opacity:0;-webkit-transform:scale(0.3);} 50%{opacity:1;-webkit-transform:scale(1.05);} 70%{-webkit-transform:scale(0.9);} 100%{-webkit-transform:scale(1);} } @-moz-keyframes bouncein{ 0%{opacity:0;-moz-transform:scale(0.3);} 50%{opacity:1;-moz-transform:scale(1.05);} 70%{-moz-transform:scale(0.9);} 100%{-moz-transform:scale(1);} } @-ms-keyframes bouncein{ 0%{opacity:0;-ms-transform:scale(0.3);} 50%{opacity:1;-ms-transform:scale(1.05);} 70%{-ms-transform:scale(0.9);} 100%{-ms-transform:scale(1);} } @keyframes bouncein{ 0%{opacity:0;transform:scale(0.3);} 50%{opacity:1;transform:scale(1.05);} 70%{transform:scale(0.9);} 100%{transform:scale(1);} } /* 彈入-從上 */ @-webkit-keyframes bounceinT{ 0%{opacity:0;-webkit-transform:translateY(-100px);} 60%{opacity:1;-webkit-transform:translateY(30px);} 80%{-webkit-transform:translateY(-10px);} 100%{-webkit-transform:translateY(0);} } @-moz-keyframes bounceinT{ 0%{opacity:0;-moz-transform:translateY(-100px);} 60%{opacity:1;-moz-transform:translateY(30px);} 80%{-moz-transform:translateY(-10px);} 100%{-moz-transform:translateY(0);} } @-ms-keyframes bounceinT{ 0%{opacity:0;-ms-transform:translateY(-100px);} 60%{opacity:1;-ms-transform:translateY(30px);} 80%{-ms-transform:translateY(-10px);} 100%{-ms-transform:translateY(0);} } @keyframes bounceinT{ 0%{opacity:0;transform:translateY(-100px);} 60%{opacity:1;transform:translateY(30px);} 80%{transform:translateY(-10px);} 100%{transform:translateY(0);} } /* 彈入-從右 */ @-webkit-keyframes bounceinR{ 0%{opacity:0;-webkit-transform:translateX(100px);} 60%{opacity:1;-webkit-transform:translateX(-30px);} 80%{-webkit-transform:translateX(10px);} 100%{-webkit-transform:translateX(0);} } @-moz-keyframes bounceinR{ 0%{opacity:0;-moz-transform:translateX(100px);} 60%{opacity:1;-moz-transform:translateX(-30px);} 80%{-moz-transform:translateX(10px);} 100%{-moz-transform:translateX(0);} } @-ms-keyframes bounceinR{ 0%{opacity:0;-ms-transform:translateX(100px);} 60%{opacity:1;-ms-transform:translateX(-30px);} 80%{-ms-transform:translateX(10px);} 100%{-ms-transform:translateX(0);} } @keyframes bounceinR{ 0%{opacity:0;transform:translateX(100px);} 60%{opacity:1;transform:translateX(-30px);} 80%{transform:translateX(10px);} 100%{transform:translateX(0);} } /* 彈入-從下 */ @-webkit-keyframes bounceinB{ 0%{opacity:0;-webkit-transform:translateY(100px);} 60%{opacity:1;-webkit-transform:translateY(-30px);} 80%{-webkit-transform:translateY(10px);} 100%{-webkit-transform:translateY(0);} } @-moz-keyframes bounceinB{ 0%{opacity:0;-moz-transform:translateY(100px);} 60%{opacity:1;-moz-transform:translateY(-30px);} 80%{-moz-transform:translateY(10px);} 100%{-moz-transform:translateY(0);} } @-ms-keyframes bounceinB{ 0%{opacity:0;-ms-transform:translateY(100px);} 60%{opacity:1;-ms-transform:translateY(-30px);} 80%{-ms-transform:translateY(10px);} 100%{-ms-transform:translateY(0);} } @keyframes bounceinB{ 0%{opacity:0;transform:translateY(100px);} 60%{opacity:1;transform:translateY(-30px);} 80%{transform:translateY(10px);} 100%{transform:translateY(0);} } /* 彈入-從左 */ @-webkit-keyframes bounceinL{ 0%{opacity:0;-webkit-transform:translateX(-100px);} 60%{opacity:1;-webkit-transform:translateX(30px);} 80%{-webkit-transform:translateX(-10px);} 100%{