You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1121 lines
18 KiB

11 years ago
  1. /*******************************
  2. Semantic - Transition
  3. Author: Jack Lukic
  4. CSS animation definitions for
  5. transition module
  6. *******************************/
  7. /*
  8. Some transitions adapted from Animate CSS
  9. https://github.com/daneden/animate.css
  10. */
  11. .ui.transition {
  12. -webkit-animation-iteration-count: 1;
  13. -moz-animation-iteration-count: 1;
  14. -ms-animation-iteration-count: 1;
  15. -o-animation-iteration-count: 1;
  16. animation-iteration-count: 1;
  17. -webkit-animation-duration: 1s;
  18. -moz-animation-duration: 1s;
  19. -ms-animation-duration: 1s;
  20. -o-animation-duration: 1s;
  21. animation-duration: 1s;
  22. animation-timing-function: ease;
  23. -webkit-animation-timing-function: ease;
  24. -webkit-animation-fill-mode: both;
  25. -moz-animation-fill-mode: both;
  26. -ms-animation-fill-mode: both;
  27. -o-animation-fill-mode: both;
  28. animation-fill-mode: both;
  29. }
  30. /*******************************
  31. States
  32. *******************************/
  33. .ui.animating.transition {
  34. -webkit-backface-visibility: hidden;
  35. -moz-backface-visibility: hidden;
  36. -ms-backface-visibility: hidden;
  37. -o-backface-visibility: hidden;
  38. backface-visibility: hidden;
  39. -webkit-transform: translateZ(0);
  40. -moz-transform: translateZ(0);
  41. -ms-transform: translateZ(0);
  42. -o-transform: translateZ(0);
  43. transform: translateZ(0);
  44. }
  45. /* Loading */
  46. .ui.loading.transition {
  47. position: absolute;
  48. top: -999999px;
  49. left: -99999px;
  50. }
  51. /* Hidden */
  52. .ui.hidden.transition {
  53. display: none;
  54. }
  55. /* Visible */
  56. .ui.visible.transition {
  57. display: block;
  58. visibility: visible;
  59. }
  60. /* Disabled */
  61. .ui.disabled.transition {
  62. -webkit-animation-play-state: paused;
  63. -moz-animation-play-state: paused;
  64. -ms-animation-play-state: paused;
  65. -o-animation-play-state: paused;
  66. animation-play-state: paused;
  67. }
  68. /*******************************
  69. Variations
  70. *******************************/
  71. .ui.looping.transition {
  72. -webkit-animation-iteration-count: infinite;
  73. -moz-animation-iteration-count: infinite;
  74. -ms-animation-iteration-count: infinite;
  75. -o-animation-iteration-count: infinite;
  76. animation-iteration-count: infinite;
  77. }
  78. /*******************************
  79. Types
  80. *******************************/
  81. /*--------------
  82. Emphasis
  83. ---------------*/
  84. .ui.flash.transition {
  85. -webkit-animation-name: flash;
  86. -moz-animation-name: flash;
  87. -o-animation-name: flash;
  88. animation-name: flash;
  89. }
  90. .ui.shake.transition {
  91. -webkit-animation-name: shake;
  92. -moz-animation-name: shake;
  93. -o-animation-name: shake;
  94. animation-name: shake;
  95. }
  96. .ui.bounce.transition {
  97. -webkit-animation-name: bounce;
  98. -moz-animation-name: bounce;
  99. -o-animation-name: bounce;
  100. animation-name: bounce;
  101. }
  102. .ui.tada.transition {
  103. -webkit-animation-name: tada;
  104. -moz-animation-name: tada;
  105. -o-animation-name: tada;
  106. animation-name: tada;
  107. }
  108. /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
  109. .ui.pulse.transition {
  110. -webkit-animation-name: pulse;
  111. -moz-animation-name: pulse;
  112. -o-animation-name: pulse;
  113. animation-name: pulse;
  114. }
  115. /*--------------
  116. Flips
  117. ---------------*/
  118. .ui.flip.transition.in,
  119. .ui.flip.transition.out {
  120. -webkit-perspective: 2000px;
  121. perspective: 2000px;
  122. }
  123. .ui.horizontal.flip.transition.in,
  124. .ui.horizontal.flip.transition.out {
  125. -webkit-animation-name: horizontalFlip;
  126. -moz-animation-name: horizontalFlip;
  127. -o-animation-name: horizontalFlip;
  128. animation-name: horizontalFlip;
  129. }
  130. .ui.horizontal.flip.transition.out {
  131. -webkit-animation-name: horizontalFlipOut;
  132. -moz-animation-name: horizontalFlipOut;
  133. -o-animation-name: horizontalFlipOut;
  134. animation-name: horizontalFlipOut;
  135. }
  136. .ui.vertical.flip.transition.in,
  137. .ui.vertical.flip.transition.out {
  138. -webkit-animation-name: verticalFlip;
  139. -moz-animation-name: verticalFlip;
  140. -o-animation-name: verticalFlip;
  141. animation-name: verticalFlip;
  142. }
  143. .ui.vertical.flip.transition.out {
  144. -webkit-animation-name: verticalFlipOut;
  145. -moz-animation-name: verticalFlipOut;
  146. -o-animation-name: verticalFlipOut;
  147. animation-name: verticalFlipOut;
  148. }
  149. /*--------------
  150. Fades
  151. ---------------*/
  152. .ui.fade.transition.in {
  153. -webkit-animation-name: fade;
  154. -moz-animation-name: fade;
  155. -o-animation-name: fade;
  156. animation-name: fade;
  157. }
  158. .ui.fade.transition.out {
  159. -webkit-animation-name: fadeOut;
  160. -moz-animation-name: fadeOut;
  161. -o-animation-name: fadeOut;
  162. animation-name: fadeOut;
  163. }
  164. .ui.fade.up.transition.in {
  165. -webkit-animation-name: fadeUp;
  166. -moz-animation-name: fadeUp;
  167. -o-animation-name: fadeUp;
  168. animation-name: fadeUp;
  169. }
  170. .ui.fade.up.transition.out {
  171. -webkit-animation-name: fadeUpOut;
  172. -moz-animation-name: fadeUpOut;
  173. -o-animation-name: fadeUpOut;
  174. animation-name: fadeUpOut;
  175. }
  176. .ui.fade.down.transition.in {
  177. -webkit-animation-name: fadeDown;
  178. -moz-animation-name: fadeDown;
  179. -o-animation-name: fadeDown;
  180. animation-name: fadeDown;
  181. }
  182. .ui.fade.down.transition.out {
  183. -webkit-animation-name: fadeDownOut;
  184. -moz-animation-name: fadeDownOut;
  185. -o-animation-name: fadeDownOut;
  186. animation-name: fadeDownOut;
  187. }
  188. /*--------------
  189. Scale
  190. ---------------*/
  191. .ui.scale.transition.in {
  192. -webkit-animation-name: scale;
  193. -moz-animation-name: scale;
  194. -o-animation-name: scale;
  195. animation-name: scale;
  196. }
  197. .ui.scale.transition.out {
  198. -webkit-animation-name: scaleOut;
  199. -moz-animation-name: scaleOut;
  200. -o-animation-name: scaleOut;
  201. animation-name: scaleOut;
  202. }
  203. /*--------------
  204. Slide
  205. ---------------*/
  206. .ui.slide.down.transition.in {
  207. -webkit-animation-name: slide;
  208. -moz-animation-name: slide;
  209. -o-animation-name: slide;
  210. animation-name: slide;
  211. transform-origin: 50% 0%;
  212. -ms-transform-origin: 50% 0%;
  213. -webkit-transform-origin: 50% 0%;
  214. }
  215. .ui.slide.down.transition.out {
  216. -webkit-animation-name: slideOut;
  217. -moz-animation-name: slideOut;
  218. -o-animation-name: slideOut;
  219. animation-name: slideOut;
  220. transform-origin: 50% 0%;
  221. -ms-transform-origin: 50% 0%;
  222. -webkit-transform-origin: 50% 0%;
  223. }
  224. .ui.slide.up.transition.in {
  225. -webkit-animation-name: slide;
  226. -moz-animation-name: slide;
  227. -o-animation-name: slide;
  228. animation-name: slide;
  229. transform-origin: 50% 100%;
  230. -ms-transform-origin: 50% 100%;
  231. -webkit-transform-origin: 50% 100%;
  232. }
  233. .ui.slide.up.transition.out {
  234. -webkit-animation-name: slideOut;
  235. -moz-animation-name: slideOut;
  236. -o-animation-name: slideOut;
  237. animation-name: slideOut;
  238. transform-origin: 50% 100%;
  239. -ms-transform-origin: 50% 100%;
  240. -webkit-transform-origin: 50% 100%;
  241. }
  242. @-moz-keyframes slide {
  243. 0% {
  244. opacity: 0;
  245. -moz-transform: scaleY(0);
  246. }
  247. 100% {
  248. opacity: 1;
  249. -moz-transform: scaleY(1);
  250. }
  251. }
  252. @-webkit-keyframes slide {
  253. 0% {
  254. opacity: 0;
  255. -webkit-transform: scaleY(0);
  256. }
  257. 100% {
  258. opacity: 1;
  259. -webkit-transform: scaleY(1);
  260. }
  261. }
  262. @keyframes slide {
  263. 0% {
  264. opacity: 0;
  265. transform: scaleY(0);
  266. }
  267. 100% {
  268. opacity: 1;
  269. transform: scaleY(1);
  270. }
  271. }
  272. @-moz-keyframes slideOut {
  273. 0% {
  274. opacity: 1;
  275. -moz-transform: scaleY(1);
  276. }
  277. 100% {
  278. opacity: 0;
  279. -moz-transform: scaleY(0);
  280. }
  281. }
  282. @-webkit-keyframes slideOut {
  283. 0% {
  284. opacity: 1;
  285. -webkit-transform: scaleY(1);
  286. }
  287. 100% {
  288. opacity: 0;
  289. -webkit-transform: scaleY(0);
  290. }
  291. }
  292. @keyframes slideOut {
  293. 0% {
  294. opacity: 1;
  295. transform: scaleY(1);
  296. }
  297. 100% {
  298. opacity: 0;
  299. transform: scaleY(0);
  300. }
  301. }
  302. /*******************************
  303. Animations
  304. *******************************/
  305. /*--------------
  306. Emphasis
  307. ---------------*/
  308. /* Flash */
  309. @-webkit-keyframes flash {
  310. 0%,
  311. 50%,
  312. 100% {
  313. opacity: 1;
  314. }
  315. 25%,
  316. 75% {
  317. opacity: 0;
  318. }
  319. }
  320. @-moz-keyframes flash {
  321. 0%,
  322. 50%,
  323. 100% {
  324. opacity: 1;
  325. }
  326. 25%,
  327. 75% {
  328. opacity: 0;
  329. }
  330. }
  331. @-o-keyframes flash {
  332. 0%,
  333. 50%,
  334. 100% {
  335. opacity: 1;
  336. }
  337. 25%,
  338. 75% {
  339. opacity: 0;
  340. }
  341. }
  342. @keyframes flash {
  343. 0%,
  344. 50%,
  345. 100% {
  346. opacity: 1;
  347. }
  348. 25%,
  349. 75% {
  350. opacity: 0;
  351. }
  352. }
  353. /* Shake */
  354. @-webkit-keyframes shake {
  355. 0%,
  356. 100% {
  357. -webkit-transform: translateX(0);
  358. }
  359. 10%,
  360. 30%,
  361. 50%,
  362. 70%,
  363. 90% {
  364. -webkit-transform: translateX(-10px);
  365. }
  366. 20%,
  367. 40%,
  368. 60%,
  369. 80% {
  370. -webkit-transform: translateX(10px);
  371. }
  372. }
  373. @-moz-keyframes shake {
  374. 0%,
  375. 100% {
  376. -moz-transform: translateX(0);
  377. }
  378. 10%,
  379. 30%,
  380. 50%,
  381. 70%,
  382. 90% {
  383. -moz-transform: translateX(-10px);
  384. }
  385. 20%,
  386. 40%,
  387. 60%,
  388. 80% {
  389. -moz-transform: translateX(10px);
  390. }
  391. }
  392. @-o-keyframes shake {
  393. 0%,
  394. 100% {
  395. -o-transform: translateX(0);
  396. }
  397. 10%,
  398. 30%,
  399. 50%,
  400. 70%,
  401. 90% {
  402. -o-transform: translateX(-10px);
  403. }
  404. 20%,
  405. 40%,
  406. 60%,
  407. 80% {
  408. -o-transform: translateX(10px);
  409. }
  410. }
  411. @keyframes shake {
  412. 0%,
  413. 100% {
  414. transform: translateX(0);
  415. }
  416. 10%,
  417. 30%,
  418. 50%,
  419. 70%,
  420. 90% {
  421. transform: translateX(-10px);
  422. }
  423. 20%,
  424. 40%,
  425. 60%,
  426. 80% {
  427. transform: translateX(10px);
  428. }
  429. }
  430. /* Bounce */
  431. @-webkit-keyframes bounce {
  432. 0%,
  433. 20%,
  434. 50%,
  435. 80%,
  436. 100% {
  437. -webkit-transform: translateY(0);
  438. }
  439. 40% {
  440. -webkit-transform: translateY(-30px);
  441. }
  442. 60% {
  443. -webkit-transform: translateY(-15px);
  444. }
  445. }
  446. @-moz-keyframes bounce {
  447. 0%,
  448. 20%,
  449. 50%,
  450. 80%,
  451. 100% {
  452. -moz-transform: translateY(0);
  453. }
  454. 40% {
  455. -moz-transform: translateY(-30px);
  456. }
  457. 60% {
  458. -moz-transform: translateY(-15px);
  459. }
  460. }
  461. @-o-keyframes bounce {
  462. 0%,
  463. 20%,
  464. 50%,
  465. 80%,
  466. 100% {
  467. -o-transform: translateY(0);
  468. }
  469. 40% {
  470. -o-transform: translateY(-30px);
  471. }
  472. 60% {
  473. -o-transform: translateY(-15px);
  474. }
  475. }
  476. @keyframes bounce {
  477. 0%,
  478. 20%,
  479. 50%,
  480. 80%,
  481. 100% {
  482. transform: translateY(0);
  483. }
  484. 40% {
  485. transform: translateY(-30px);
  486. }
  487. 60% {
  488. transform: translateY(-15px);
  489. }
  490. }
  491. /* Tada */
  492. @-webkit-keyframes tada {
  493. 0% {
  494. -webkit-transform: scale(1);
  495. }
  496. 10%,
  497. 20% {
  498. -webkit-transform: scale(0.9) rotate(-3deg);
  499. }
  500. 30%,
  501. 50%,
  502. 70%,
  503. 90% {
  504. -webkit-transform: scale(1.1) rotate(3deg);
  505. }
  506. 40%,
  507. 60%,
  508. 80% {
  509. -webkit-transform: scale(1.1) rotate(-3deg);
  510. }
  511. 100% {
  512. -webkit-transform: scale(1) rotate(0);
  513. }
  514. }
  515. @-moz-keyframes tada {
  516. 0% {
  517. -moz-transform: scale(1);
  518. }
  519. 10%,
  520. 20% {
  521. -moz-transform: scale(0.9) rotate(-3deg);
  522. }
  523. 30%,
  524. 50%,
  525. 70%,
  526. 90% {
  527. -moz-transform: scale(1.1) rotate(3deg);
  528. }
  529. 40%,
  530. 60%,
  531. 80% {
  532. -moz-transform: scale(1.1) rotate(-3deg);
  533. }
  534. 100% {
  535. -moz-transform: scale(1) rotate(0);
  536. }
  537. }
  538. @-o-keyframes tada {
  539. 0% {
  540. -o-transform: scale(1);
  541. }
  542. 10%,
  543. 20% {
  544. -o-transform: scale(0.9) rotate(-3deg);
  545. }
  546. 30%,
  547. 50%,
  548. 70%,
  549. 90% {
  550. -o-transform: scale(1.1) rotate(3deg);
  551. }
  552. 40%,
  553. 60%,
  554. 80% {
  555. -o-transform: scale(1.1) rotate(-3deg);
  556. }
  557. 100% {
  558. -o-transform: scale(1) rotate(0);
  559. }
  560. }
  561. @keyframes tada {
  562. 0% {
  563. transform: scale(1);
  564. }
  565. 10%,
  566. 20% {
  567. transform: scale(0.9) rotate(-3deg);
  568. }
  569. 30%,
  570. 50%,
  571. 70%,
  572. 90% {
  573. transform: scale(1.1) rotate(3deg);
  574. }
  575. 40%,
  576. 60%,
  577. 80% {
  578. transform: scale(1.1) rotate(-3deg);
  579. }
  580. 100% {
  581. transform: scale(1) rotate(0);
  582. }
  583. }
  584. @-webkit-keyframes pulse {
  585. 0% {
  586. -webkit-transform: scale(1);
  587. opacity: 1;
  588. }
  589. 50% {
  590. -webkit-transform: scale(0.9);
  591. opacity: 0.7;
  592. }
  593. 100% {
  594. -webkit-transform: scale(1);
  595. opacity: 1;
  596. }
  597. }
  598. @-o-keyframes pulse {
  599. 0% {
  600. -o-transform: scale(1);
  601. opacity: 1;
  602. }
  603. 50% {
  604. -o-transform: scale(0.9);
  605. opacity: 0.7;
  606. }
  607. 100% {
  608. -o-transform: scale(1);
  609. opacity: 1;
  610. }
  611. }
  612. @-moz-keyframes pulse {
  613. 0% {
  614. -moz-transform: scale(1);
  615. opacity: 1;
  616. }
  617. 50% {
  618. -moz-transform: scale(0.9);
  619. opacity: 0.7;
  620. }
  621. 100% {
  622. -moz-transform: scale(1);
  623. opacity: 1;
  624. }
  625. }
  626. @keyframes pulse {
  627. 0% {
  628. transform: scale(1);
  629. opacity: 1;
  630. }
  631. 50% {
  632. transform: scale(0.9);
  633. opacity: 0.7;
  634. }
  635. 100% {
  636. transform: scale(1);
  637. opacity: 1;
  638. }
  639. }
  640. /*--------------
  641. Flips
  642. ---------------*/
  643. /* Horizontal */
  644. @-webkit-keyframes horizontalFlip {
  645. 0% {
  646. -webkit-transform: rotateY(-90deg);
  647. opacity: 0;
  648. }
  649. 100% {
  650. -webkit-transform: rotateY(0deg);
  651. opacity: 1;
  652. }
  653. }
  654. @-moz-keyframes horizontalFlip {
  655. 0% {
  656. -moz-transform: rotateY(-90deg);
  657. opacity: 0;
  658. }
  659. 100% {
  660. -moz-transform: rotateY(0deg);
  661. opacity: 1;
  662. }
  663. }
  664. @-o-keyframes horizontalFlip {
  665. 0% {
  666. -o-transform: rotateY(-90deg);
  667. opacity: 0;
  668. }
  669. 100% {
  670. -o-transform: rotateY(0deg);
  671. opacity: 1;
  672. }
  673. }
  674. @keyframes horizontalFlip {
  675. 0% {
  676. transform: rotateY(-90deg);
  677. opacity: 0;
  678. }
  679. 100% {
  680. transform: rotateY(0deg);
  681. opacity: 1;
  682. }
  683. }
  684. /* Horizontal */
  685. @-webkit-keyframes horizontalFlipOut {
  686. 0% {
  687. -webkit-transform: rotateY(0deg);
  688. opacity: 0;
  689. }
  690. 100% {
  691. -webkit-transform: rotateY(90deg);
  692. opacity: 1;
  693. }
  694. }
  695. @-moz-keyframes horizontalFlipOut {
  696. 0% {
  697. -moz-transform: rotateY(0deg);
  698. opacity: 0;
  699. }
  700. 100% {
  701. -moz-transform: rotateY(90deg);
  702. opacity: 1;
  703. }
  704. }
  705. @-o-keyframes horizontalFlipOut {
  706. 0% {
  707. -o-transform: rotateY(0deg);
  708. opacity: 0;
  709. }
  710. 100% {
  711. -o-transform: rotateY(90deg);
  712. opacity: 1;
  713. }
  714. }
  715. @keyframes horizontalFlipOut {
  716. 0% {
  717. transform: rotateY(0deg);
  718. opacity: 0;
  719. }
  720. 100% {
  721. transform: rotateY(90deg);
  722. opacity: 1;
  723. }
  724. }
  725. /* Vertical */
  726. @-webkit-keyframes verticalFlip {
  727. 0% {
  728. -webkit-transform: rotateX(-90deg);
  729. opacity: 0;
  730. }
  731. 100% {
  732. -webkit-transform: rotateX(0deg);
  733. opacity: 1;
  734. }
  735. }
  736. @-moz-keyframes verticalFlip {
  737. 0% {
  738. -moz-transform: rotateX(-90deg);
  739. opacity: 0;
  740. }
  741. 100% {
  742. -moz-transform: rotateX(0deg);
  743. opacity: 1;
  744. }
  745. }
  746. @-o-keyframes verticalFlip {
  747. 0% {
  748. -o-transform: rotateX(-90deg);
  749. opacity: 0;
  750. }
  751. 100% {
  752. -o-transform: rotateX(0deg);
  753. opacity: 1;
  754. }
  755. }
  756. @keyframes verticalFlip {
  757. 0% {
  758. transform: rotateX(-90deg);
  759. opacity: 0;
  760. }
  761. 100% {
  762. transform: rotateX(0deg);
  763. opacity: 1;
  764. }
  765. }
  766. @-webkit-keyframes verticalFlipOut {
  767. 0% {
  768. -webkit-transform: rotateX(0deg);
  769. opacity: 1;
  770. }
  771. 100% {
  772. -webkit-transform: rotateX(-90deg);
  773. opacity: 0;
  774. }
  775. }
  776. @-moz-keyframes verticalFlipOut {
  777. 0% {
  778. -moz-transform: rotateX(0deg);
  779. opacity: 1;
  780. }
  781. 100% {
  782. -moz-transform: rotateX(-90deg);
  783. opacity: 0;
  784. }
  785. }
  786. @-o-keyframes verticalFlipOut {
  787. 0% {
  788. -o-transform: rotateX(0deg);
  789. opacity: 1;
  790. }
  791. 100% {
  792. -o-transform: rotateX(-90deg);
  793. opacity: 0;
  794. }
  795. }
  796. @keyframes verticalFlipOut {
  797. 0% {
  798. transform: rotateX(0deg);
  799. opacity: 1;
  800. }
  801. 100% {
  802. transform: rotateX(-90deg);
  803. opacity: 0;
  804. }
  805. }
  806. /*--------------
  807. Fades
  808. ---------------*/
  809. /* Fade */
  810. @-webkit-keyframes fade {
  811. 0% {
  812. opacity: 0;
  813. }
  814. 100% {
  815. opacity: 1;
  816. }
  817. }
  818. @-moz-keyframes fade {
  819. 0% {
  820. opacity: 0;
  821. }
  822. 100% {
  823. opacity: 1;
  824. }
  825. }
  826. @-o-keyframes fade {
  827. 0% {
  828. opacity: 0;
  829. }
  830. 100% {
  831. opacity: 1;
  832. }
  833. }
  834. @keyframes fade {
  835. 0% {
  836. opacity: 0;
  837. }
  838. 100% {
  839. opacity: 1;
  840. }
  841. }
  842. @-webkit-keyframes fadeOut {
  843. 0% {
  844. opacity: 1;
  845. }
  846. 100% {
  847. opacity: 0;
  848. }
  849. }
  850. @-moz-keyframes fadeOut {
  851. 0% {
  852. opacity: 1;
  853. }
  854. 100% {
  855. opacity: 0;
  856. }
  857. }
  858. @-o-keyframes fadeOut {
  859. 0% {
  860. opacity: 1;
  861. }
  862. 100% {
  863. opacity: 0;
  864. }
  865. }
  866. @keyframes fadeOut {
  867. 0% {
  868. opacity: 1;
  869. }
  870. 100% {
  871. opacity: 0;
  872. }
  873. }
  874. /* Fade Up */
  875. @-webkit-keyframes fadeUp {
  876. 0% {
  877. opacity: 0;
  878. -webkit-transform: translateY(20px);
  879. }
  880. 100% {
  881. opacity: 1;
  882. -webkit-transform: translateY(0);
  883. }
  884. }
  885. @-moz-keyframes fadeUp {
  886. 0% {
  887. opacity: 0;
  888. -moz-transform: translateY(20px);
  889. }
  890. 100% {
  891. opacity: 1;
  892. -moz-transform: translateY(0);
  893. }
  894. }
  895. @-o-keyframes fadeUp {
  896. 0% {
  897. opacity: 0;
  898. -o-transform: translateY(20px);
  899. }
  900. 100% {
  901. opacity: 1;
  902. -o-transform: translateY(0);
  903. }
  904. }
  905. @keyframes fadeUp {
  906. 0% {
  907. opacity: 0;
  908. transform: translateY(20px);
  909. }
  910. 100% {
  911. opacity: 1;
  912. transform: translateY(0);
  913. }
  914. }
  915. @-webkit-keyframes fadeUpOut {
  916. 0% {
  917. opacity: 1;
  918. -webkit-transform: translateY(0);
  919. }
  920. 100% {
  921. opacity: 0;
  922. -webkit-transform: translateY(20px);
  923. }
  924. }
  925. @-moz-keyframes fadeUpOut {
  926. 0% {
  927. opacity: 1;
  928. -moz-transform: translateY(0);
  929. }
  930. 100% {
  931. opacity: 0;
  932. -moz-transform: translateY(20px);
  933. }
  934. }
  935. @-o-keyframes fadeUpOut {
  936. 0% {
  937. opacity: 1;
  938. -o-transform: translateY(0);
  939. }
  940. 100% {
  941. opacity: 0;
  942. -o-transform: translateY(20px);
  943. }
  944. }
  945. @keyframes fadeUpOut {
  946. 0% {
  947. opacity: 1;
  948. transform: translateY(0);
  949. }
  950. 100% {
  951. opacity: 0;
  952. transform: translateY(20px);
  953. }
  954. }
  955. /* Fade Down */
  956. @-webkit-keyframes fadeDown {
  957. 0% {
  958. opacity: 0;
  959. -webkit-transform: translateY(-20px);
  960. }
  961. 100% {
  962. opacity: 1;
  963. -webkit-transform: translateY(0);
  964. }
  965. }
  966. @-moz-keyframes fadeDown {
  967. 0% {
  968. opacity: 0;
  969. -moz-transform: translateY(-20px);
  970. }
  971. 100% {
  972. opacity: 1;
  973. -moz-transform: translateY(0);
  974. }
  975. }
  976. @-o-keyframes fadeDown {
  977. 0% {
  978. opacity: 0;
  979. -o-transform: translateY(-20px);
  980. }
  981. 100% {
  982. opacity: 1;
  983. -o-transform: translateY(0);
  984. }
  985. }
  986. @keyframes fadeDown {
  987. 0% {
  988. opacity: 0;
  989. transform: translateY(-20px);
  990. }
  991. 100% {
  992. opacity: 1;
  993. transform: translateY(0);
  994. }
  995. }
  996. @-webkit-keyframes fadeDownOut {
  997. 0% {
  998. opacity: 1;
  999. -webkit-transform: translateY(0);
  1000. }
  1001. 100% {
  1002. opacity: 0;
  1003. -webkit-transform: translateY(-20px);
  1004. }
  1005. }
  1006. @-moz-keyframes fadeDownOut {
  1007. 0% {
  1008. opacity: 1;
  1009. -moz-transform: translateY(0);
  1010. }
  1011. 100% {
  1012. opacity: 0;
  1013. -moz-transform: translateY(-20px);
  1014. }
  1015. }
  1016. @-o-keyframes fadeDownOut {
  1017. 0% {
  1018. opacity: 1;
  1019. -o-transform: translateY(0);
  1020. }
  1021. 100% {
  1022. opacity: 0;
  1023. -o-transform: translateY(-20px);
  1024. }
  1025. }
  1026. @keyframes fadeDownOut {
  1027. 0% {
  1028. opacity: 1;
  1029. transform: translateY(0);
  1030. }
  1031. 100% {
  1032. opacity: 0;
  1033. transform: translateY(-20px);
  1034. }
  1035. }
  1036. /*--------------
  1037. Scale
  1038. ---------------*/
  1039. /* Scale */
  1040. @-webkit-keyframes scale {
  1041. 0% {
  1042. opacity: 0;
  1043. -webkit-transform: scale(0.7);
  1044. }
  1045. 100% {
  1046. opacity: 1;
  1047. -webkit-transform: scale(1);
  1048. }
  1049. }
  1050. @-moz-keyframes scale {
  1051. 0% {
  1052. opacity: 0;
  1053. -moz-transform: scale(0.7);
  1054. }
  1055. 100% {
  1056. opacity: 1;
  1057. -moz-transform: scale(1);
  1058. }
  1059. }
  1060. @-o-keyframes scale {
  1061. 0% {
  1062. opacity: 0;
  1063. -o-transform: scale(0.7);
  1064. }
  1065. 100% {
  1066. opacity: 1;
  1067. -o-transform: scale(1);
  1068. }
  1069. }
  1070. @keyframes scale {
  1071. 0% {
  1072. opacity: 0;
  1073. transform: scale(0.7);
  1074. }
  1075. 100% {
  1076. opacity: 1;
  1077. transform: scale(1);
  1078. }
  1079. }
  1080. @-webkit-keyframes scaleOut {
  1081. 0% {
  1082. opacity: 1;
  1083. -webkit-transform: scale(1);
  1084. }
  1085. 100% {
  1086. opacity: 0;
  1087. -webkit-transform: scale(0.7);
  1088. }
  1089. }
  1090. @-moz-keyframes scaleOut {
  1091. 0% {
  1092. opacity: 1;
  1093. -moz-transform: scale(1);
  1094. }
  1095. 100% {
  1096. opacity: 0;
  1097. -moz-transform: scale(0.7);
  1098. }
  1099. }
  1100. @-o-keyframes scaleOut {
  1101. 0% {
  1102. opacity: 1;
  1103. -o-transform: scale(1);
  1104. }
  1105. 100% {
  1106. opacity: 0;
  1107. -o-transform: scale(0.7);
  1108. }
  1109. }
  1110. @keyframes scaleOut {
  1111. 0% {
  1112. opacity: 1;
  1113. transform: scale(1);
  1114. }
  1115. 100% {
  1116. opacity: 0;
  1117. transform: scale(0.7);
  1118. }
  1119. }