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.

851 lines
15 KiB

  1. /*******************************
  2. Semantic Module: Transition
  3. Author: Jack Lukic
  4. Notes: First Commit March 25, 2013
  5. CSS animation definitions for
  6. transition module
  7. *******************************/
  8. /*
  9. Transitions adapted from Animate CSS
  10. https://github.com/daneden/animate.css
  11. Licensed under the MIT license
  12. Copyright (c) 2013 Daniel Eden
  13. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  14. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  16. */
  17. .ui.transition {
  18. -webkit-backface-visibility: hidden;
  19. -moz-backface-visibility: hidden;
  20. -ms-backface-visibility: hidden;
  21. -o-backface-visibility: hidden;
  22. backface-visibility: hidden;
  23. -webkit-animation-fill-mode: both;
  24. -moz-animation-fill-mode: both;
  25. -ms-animation-fill-mode: both;
  26. -o-animation-fill-mode: both;
  27. animation-fill-mode: both;
  28. }
  29. /*******************************
  30. States
  31. *******************************/
  32. .ui.hidden.transition {
  33. display: none;
  34. }
  35. .ui.visible.transition {
  36. display: block;
  37. }
  38. .ui.disabled.transition {
  39. -webkit-animation-play-state: paused;
  40. -moz-animation-play-state: paused;
  41. -ms-animation-play-state: paused;
  42. -o-animation-play-state: paused;
  43. animation-play-state: paused;
  44. }
  45. /*******************************
  46. Variations
  47. *******************************/
  48. /*--------------
  49. Emphasis
  50. ---------------*/
  51. .ui.flash.transition {
  52. -webkit-animation-name: flash;
  53. -moz-animation-name: flash;
  54. -o-animation-name: flash;
  55. animation-name: flash;
  56. }
  57. .ui.shake.transition {
  58. -webkit-animation-name: shake;
  59. -moz-animation-name: shake;
  60. -o-animation-name: shake;
  61. animation-name: shake;
  62. }
  63. .ui.bounce.transition {
  64. -webkit-animation-name: bounce;
  65. -moz-animation-name: bounce;
  66. -o-animation-name: bounce;
  67. animation-name: bounce;
  68. }
  69. .ui.tada.transition {
  70. -webkit-animation-name: tada;
  71. -moz-animation-name: tada;
  72. -o-animation-name: tada;
  73. animation-name: tada;
  74. }
  75. /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
  76. .ui.pulse.transition {
  77. -webkit-animation-name: pulse;
  78. -moz-animation-name: pulse;
  79. -o-animation-name: pulse;
  80. animation-name: pulse;
  81. }
  82. /*--------------
  83. Flips
  84. ---------------*/
  85. .ui.flip.x.transition.in {
  86. -webkit-backface-visibility: visible !important;
  87. -webkit-animation-name: flipInX;
  88. -moz-backface-visibility: visible !important;
  89. -moz-animation-name: flipInX;
  90. -o-backface-visibility: visible !important;
  91. -o-animation-name: flipInX;
  92. backface-visibility: visible !important;
  93. animation-name: flipInX;
  94. }
  95. .ui.flip.x.transition.out {
  96. -webkit-animation-name: flipOutX;
  97. -webkit-backface-visibility: visible !important;
  98. -moz-animation-name: flipOutX;
  99. -moz-backface-visibility: visible !important;
  100. -o-animation-name: flipOutX;
  101. -o-backface-visibility: visible !important;
  102. animation-name: flipOutX;
  103. backface-visibility: visible !important;
  104. }
  105. .ui.flip.y.transition.in {
  106. -webkit-backface-visibility: visible !important;
  107. -webkit-animation-name: flipInY;
  108. -moz-backface-visibility: visible !important;
  109. -moz-animation-name: flipInY;
  110. -o-backface-visibility: visible !important;
  111. -o-animation-name: flipInY;
  112. backface-visibility: visible !important;
  113. animation-name: flipInY;
  114. }
  115. .ui.flip.y.transition.out {
  116. -webkit-backface-visibility: visible !important;
  117. -webkit-animation-name: flipOutY;
  118. -moz-backface-visibility: visible !important;
  119. -moz-animation-name: flipOutY;
  120. -o-backface-visibility: visible !important;
  121. -o-animation-name: flipOutY;
  122. backface-visibility: visible !important;
  123. animation-name: flipOutY;
  124. }
  125. /*--------------
  126. Fades
  127. ---------------*/
  128. .ui.fade.transition.in {
  129. -webkit-animation-name: fadeIn;
  130. -moz-animation-name: fadeIn;
  131. -o-animation-name: fadeIn;
  132. animation-name: fadeIn;
  133. }
  134. .ui.fade.up.transition.in {
  135. -webkit-animation-name: fadeInUp;
  136. -moz-animation-name: fadeInUp;
  137. -o-animation-name: fadeInUp;
  138. animation-name: fadeInUp;
  139. }
  140. .ui.fade.down.transition.in {
  141. -webkit-animation-name: fadeInDown;
  142. -moz-animation-name: fadeInDown;
  143. -o-animation-name: fadeInDown;
  144. animation-name: fadeInDown;
  145. }
  146. .ui.fade.transition.out {
  147. -webkit-animation-name: fadeOut;
  148. -moz-animation-name: fadeOut;
  149. -o-animation-name: fadeOut;
  150. animation-name: fadeOut;
  151. }
  152. .ui.fade.up.transition.out {
  153. -webkit-animation-name: fadeOutUp;
  154. -moz-animation-name: fadeOutUp;
  155. -o-animation-name: fadeOutUp;
  156. animation-name: fadeOutUp;
  157. }
  158. .ui.fade.down.transition.out {
  159. -webkit-animation-name: fadeOutDown;
  160. -moz-animation-name: fadeOutDown;
  161. -o-animation-name: fadeOutDown;
  162. animation-name: fadeOutDown;
  163. }
  164. /*******************************
  165. Animations
  166. *******************************/
  167. /*--------------
  168. Emphasis
  169. ---------------*/
  170. @-moz-keyframes flash {
  171. 0%,
  172. 50%,
  173. 100% {
  174. opacity: 1;
  175. }
  176. 25%,
  177. 75% {
  178. opacity: 0;
  179. }
  180. }
  181. @-o-keyframes flash {
  182. 0%,
  183. 50%,
  184. 100% {
  185. opacity: 1;
  186. }
  187. 25%,
  188. 75% {
  189. opacity: 0;
  190. }
  191. }
  192. @keyframes flash {
  193. 0%,
  194. 50%,
  195. 100% {
  196. opacity: 1;
  197. }
  198. 25%,
  199. 75% {
  200. opacity: 0;
  201. }
  202. }
  203. @-webkit-keyframes shake {
  204. 0%,
  205. 100% {
  206. -webkit-transform: translateX(0);
  207. }
  208. 10%,
  209. 30%,
  210. 50%,
  211. 70%,
  212. 90% {
  213. -webkit-transform: translateX(-10px);
  214. }
  215. 20%,
  216. 40%,
  217. 60%,
  218. 80% {
  219. -webkit-transform: translateX(10px);
  220. }
  221. }
  222. @-moz-keyframes shake {
  223. 0%,
  224. 100% {
  225. -moz-transform: translateX(0);
  226. }
  227. 10%,
  228. 30%,
  229. 50%,
  230. 70%,
  231. 90% {
  232. -moz-transform: translateX(-10px);
  233. }
  234. 20%,
  235. 40%,
  236. 60%,
  237. 80% {
  238. -moz-transform: translateX(10px);
  239. }
  240. }
  241. @-o-keyframes shake {
  242. 0%,
  243. 100% {
  244. -o-transform: translateX(0);
  245. }
  246. 10%,
  247. 30%,
  248. 50%,
  249. 70%,
  250. 90% {
  251. -o-transform: translateX(-10px);
  252. }
  253. 20%,
  254. 40%,
  255. 60%,
  256. 80% {
  257. -o-transform: translateX(10px);
  258. }
  259. }
  260. @keyframes shake {
  261. 0%,
  262. 100% {
  263. transform: translateX(0);
  264. }
  265. 10%,
  266. 30%,
  267. 50%,
  268. 70%,
  269. 90% {
  270. transform: translateX(-10px);
  271. }
  272. 20%,
  273. 40%,
  274. 60%,
  275. 80% {
  276. transform: translateX(10px);
  277. }
  278. }
  279. @-webkit-keyframes bounce {
  280. 0%,
  281. 20%,
  282. 50%,
  283. 80%,
  284. 100% {
  285. -webkit-transform: translateY(0);
  286. }
  287. 40% {
  288. -webkit-transform: translateY(-30px);
  289. }
  290. 60% {
  291. -webkit-transform: translateY(-15px);
  292. }
  293. }
  294. @-moz-keyframes bounce {
  295. 0%,
  296. 20%,
  297. 50%,
  298. 80%,
  299. 100% {
  300. -moz-transform: translateY(0);
  301. }
  302. 40% {
  303. -moz-transform: translateY(-30px);
  304. }
  305. 60% {
  306. -moz-transform: translateY(-15px);
  307. }
  308. }
  309. @-o-keyframes bounce {
  310. 0%,
  311. 20%,
  312. 50%,
  313. 80%,
  314. 100% {
  315. -o-transform: translateY(0);
  316. }
  317. 40% {
  318. -o-transform: translateY(-30px);
  319. }
  320. 60% {
  321. -o-transform: translateY(-15px);
  322. }
  323. }
  324. @keyframes bounce {
  325. 0%,
  326. 20%,
  327. 50%,
  328. 80%,
  329. 100% {
  330. transform: translateY(0);
  331. }
  332. 40% {
  333. transform: translateY(-30px);
  334. }
  335. 60% {
  336. transform: translateY(-15px);
  337. }
  338. }
  339. @-webkit-keyframes tada {
  340. 0% {
  341. -webkit-transform: scale(1);
  342. }
  343. 10%,
  344. 20% {
  345. -webkit-transform: scale(0.9) rotate(-3deg);
  346. }
  347. 30%,
  348. 50%,
  349. 70%,
  350. 90% {
  351. -webkit-transform: scale(1.1) rotate(3deg);
  352. }
  353. 40%,
  354. 60%,
  355. 80% {
  356. -webkit-transform: scale(1.1) rotate(-3deg);
  357. }
  358. 100% {
  359. -webkit-transform: scale(1) rotate(0);
  360. }
  361. }
  362. @-moz-keyframes tada {
  363. 0% {
  364. -moz-transform: scale(1);
  365. }
  366. 10%,
  367. 20% {
  368. -moz-transform: scale(0.9) rotate(-3deg);
  369. }
  370. 30%,
  371. 50%,
  372. 70%,
  373. 90% {
  374. -moz-transform: scale(1.1) rotate(3deg);
  375. }
  376. 40%,
  377. 60%,
  378. 80% {
  379. -moz-transform: scale(1.1) rotate(-3deg);
  380. }
  381. 100% {
  382. -moz-transform: scale(1) rotate(0);
  383. }
  384. }
  385. @-o-keyframes tada {
  386. 0% {
  387. -o-transform: scale(1);
  388. }
  389. 10%,
  390. 20% {
  391. -o-transform: scale(0.9) rotate(-3deg);
  392. }
  393. 30%,
  394. 50%,
  395. 70%,
  396. 90% {
  397. -o-transform: scale(1.1) rotate(3deg);
  398. }
  399. 40%,
  400. 60%,
  401. 80% {
  402. -o-transform: scale(1.1) rotate(-3deg);
  403. }
  404. 100% {
  405. -o-transform: scale(1) rotate(0);
  406. }
  407. }
  408. @keyframes tada {
  409. 0% {
  410. transform: scale(1);
  411. }
  412. 10%,
  413. 20% {
  414. transform: scale(0.9) rotate(-3deg);
  415. }
  416. 30%,
  417. 50%,
  418. 70%,
  419. 90% {
  420. transform: scale(1.1) rotate(3deg);
  421. }
  422. 40%,
  423. 60%,
  424. 80% {
  425. transform: scale(1.1) rotate(-3deg);
  426. }
  427. 100% {
  428. transform: scale(1) rotate(0);
  429. }
  430. }
  431. @-webkit-keyframes pulse {
  432. 0% {
  433. -webkit-transform: scale(1);
  434. }
  435. 50% {
  436. -webkit-transform: scale(1.1);
  437. }
  438. 100% {
  439. -webkit-transform: scale(1);
  440. }
  441. }
  442. @-moz-keyframes pulse {
  443. 0% {
  444. -moz-transform: scale(1);
  445. }
  446. 50% {
  447. -moz-transform: scale(1.1);
  448. }
  449. 100% {
  450. -moz-transform: scale(1);
  451. }
  452. }
  453. @-o-keyframes pulse {
  454. 0% {
  455. -o-transform: scale(1);
  456. }
  457. 50% {
  458. -o-transform: scale(1.1);
  459. }
  460. 100% {
  461. -o-transform: scale(1);
  462. }
  463. }
  464. @keyframes pulse {
  465. 0% {
  466. transform: scale(1);
  467. }
  468. 50% {
  469. transform: scale(1.1);
  470. }
  471. 100% {
  472. transform: scale(1);
  473. }
  474. }
  475. /*--------------
  476. Flips
  477. ---------------*/
  478. @-webkit-keyframes flipOutX {
  479. 0% {
  480. -webkit-transform: perspective(400px) rotateX(0deg);
  481. opacity: 1;
  482. }
  483. 100% {
  484. -webkit-transform: perspective(400px) rotateX(90deg);
  485. opacity: 0;
  486. }
  487. }
  488. @-moz-keyframes flipOutX {
  489. 0% {
  490. -moz-transform: perspective(400px) rotateX(0deg);
  491. opacity: 1;
  492. }
  493. 100% {
  494. -moz-transform: perspective(400px) rotateX(90deg);
  495. opacity: 0;
  496. }
  497. }
  498. @-o-keyframes flipOutX {
  499. 0% {
  500. -o-transform: perspective(400px) rotateX(0deg);
  501. opacity: 1;
  502. }
  503. 100% {
  504. -o-transform: perspective(400px) rotateX(90deg);
  505. opacity: 0;
  506. }
  507. }
  508. @keyframes flipOutX {
  509. 0% {
  510. transform: perspective(400px) rotateX(0deg);
  511. opacity: 1;
  512. }
  513. 100% {
  514. transform: perspective(400px) rotateX(90deg);
  515. opacity: 0;
  516. }
  517. }
  518. @-webkit-keyframes flipInY {
  519. 0% {
  520. -webkit-transform: perspective(400px) rotateY(90deg);
  521. opacity: 0;
  522. }
  523. 40% {
  524. -webkit-transform: perspective(400px) rotateY(-10deg);
  525. }
  526. 70% {
  527. -webkit-transform: perspective(400px) rotateY(10deg);
  528. }
  529. 100% {
  530. -webkit-transform: perspective(400px) rotateY(0deg);
  531. opacity: 1;
  532. }
  533. }
  534. @-moz-keyframes flipInY {
  535. 0% {
  536. -moz-transform: perspective(400px) rotateY(90deg);
  537. opacity: 0;
  538. }
  539. 40% {
  540. -moz-transform: perspective(400px) rotateY(-10deg);
  541. }
  542. 70% {
  543. -moz-transform: perspective(400px) rotateY(10deg);
  544. }
  545. 100% {
  546. -moz-transform: perspective(400px) rotateY(0deg);
  547. opacity: 1;
  548. }
  549. }
  550. @-o-keyframes flipInY {
  551. 0% {
  552. -o-transform: perspective(400px) rotateY(90deg);
  553. opacity: 0;
  554. }
  555. 40% {
  556. -o-transform: perspective(400px) rotateY(-10deg);
  557. }
  558. 70% {
  559. -o-transform: perspective(400px) rotateY(10deg);
  560. }
  561. 100% {
  562. -o-transform: perspective(400px) rotateY(0deg);
  563. opacity: 1;
  564. }
  565. }
  566. @keyframes flipInY {
  567. 0% {
  568. transform: perspective(400px) rotateY(90deg);
  569. opacity: 0;
  570. }
  571. 40% {
  572. transform: perspective(400px) rotateY(-10deg);
  573. }
  574. 70% {
  575. transform: perspective(400px) rotateY(10deg);
  576. }
  577. 100% {
  578. transform: perspective(400px) rotateY(0deg);
  579. opacity: 1;
  580. }
  581. }
  582. @-webkit-keyframes flipOutY {
  583. 0% {
  584. -webkit-transform: perspective(400px) rotateY(0deg);
  585. opacity: 1;
  586. }
  587. 100% {
  588. -webkit-transform: perspective(400px) rotateY(90deg);
  589. opacity: 0;
  590. }
  591. }
  592. @-moz-keyframes flipOutY {
  593. 0% {
  594. -moz-transform: perspective(400px) rotateY(0deg);
  595. opacity: 1;
  596. }
  597. 100% {
  598. -moz-transform: perspective(400px) rotateY(90deg);
  599. opacity: 0;
  600. }
  601. }
  602. @-o-keyframes flipOutY {
  603. 0% {
  604. -o-transform: perspective(400px) rotateY(0deg);
  605. opacity: 1;
  606. }
  607. 100% {
  608. -o-transform: perspective(400px) rotateY(90deg);
  609. opacity: 0;
  610. }
  611. }
  612. @keyframes flipOutY {
  613. 0% {
  614. transform: perspective(400px) rotateY(0deg);
  615. opacity: 1;
  616. }
  617. 100% {
  618. transform: perspective(400px) rotateY(90deg);
  619. opacity: 0;
  620. }
  621. }
  622. @-webkit-keyframes fadeIn {
  623. 0% {
  624. opacity: 0;
  625. }
  626. 100% {
  627. opacity: 1;
  628. }
  629. }
  630. @-moz-keyframes fadeIn {
  631. 0% {
  632. opacity: 0;
  633. }
  634. 100% {
  635. opacity: 1;
  636. }
  637. }
  638. @-o-keyframes fadeIn {
  639. 0% {
  640. opacity: 0;
  641. }
  642. 100% {
  643. opacity: 1;
  644. }
  645. }
  646. @keyframes fadeIn {
  647. 0% {
  648. opacity: 0;
  649. }
  650. 100% {
  651. opacity: 1;
  652. }
  653. }
  654. @-webkit-keyframes fadeInUp {
  655. 0% {
  656. opacity: 0;
  657. -webkit-transform: translateY(20px);
  658. }
  659. 100% {
  660. opacity: 1;
  661. -webkit-transform: translateY(0);
  662. }
  663. }
  664. @-moz-keyframes fadeInUp {
  665. 0% {
  666. opacity: 0;
  667. -moz-transform: translateY(20px);
  668. }
  669. 100% {
  670. opacity: 1;
  671. -moz-transform: translateY(0);
  672. }
  673. }
  674. @-o-keyframes fadeInUp {
  675. 0% {
  676. opacity: 0;
  677. -o-transform: translateY(20px);
  678. }
  679. 100% {
  680. opacity: 1;
  681. -o-transform: translateY(0);
  682. }
  683. }
  684. @keyframes fadeInUp {
  685. 0% {
  686. opacity: 0;
  687. transform: translateY(20px);
  688. }
  689. 100% {
  690. opacity: 1;
  691. transform: translateY(0);
  692. }
  693. }
  694. @-webkit-keyframes fadeInDown {
  695. 0% {
  696. opacity: 0;
  697. -webkit-transform: translateY(-20px);
  698. }
  699. 100% {
  700. opacity: 1;
  701. -webkit-transform: translateY(0);
  702. }
  703. }
  704. @-moz-keyframes fadeInDown {
  705. 0% {
  706. opacity: 0;
  707. -moz-transform: translateY(-20px);
  708. }
  709. 100% {
  710. opacity: 1;
  711. -moz-transform: translateY(0);
  712. }
  713. }
  714. @-o-keyframes fadeInDown {
  715. 0% {
  716. opacity: 0;
  717. -o-transform: translateY(-20px);
  718. }
  719. 100% {
  720. opacity: 1;
  721. -o-transform: translateY(0);
  722. }
  723. }
  724. @keyframes fadeInDown {
  725. 0% {
  726. opacity: 0;
  727. transform: translateY(-20px);
  728. }
  729. 100% {
  730. opacity: 1;
  731. transform: translateY(0);
  732. }
  733. }
  734. @-webkit-keyframes fadeOut {
  735. 0% {
  736. opacity: 1;
  737. }
  738. 100% {
  739. opacity: 0;
  740. }
  741. }
  742. @-moz-keyframes fadeOut {
  743. 0% {
  744. opacity: 1;
  745. }
  746. 100% {
  747. opacity: 0;
  748. }
  749. }
  750. @-o-keyframes fadeOut {
  751. 0% {
  752. opacity: 1;
  753. }
  754. 100% {
  755. opacity: 0;
  756. }
  757. }
  758. @keyframes fadeOut {
  759. 0% {
  760. opacity: 1;
  761. }
  762. 100% {
  763. opacity: 0;
  764. }
  765. }
  766. @-webkit-keyframes fadeOutUp {
  767. 0% {
  768. opacity: 1;
  769. -webkit-transform: translateY(0);
  770. }
  771. 100% {
  772. opacity: 0;
  773. -webkit-transform: translateY(-20px);
  774. }
  775. }
  776. @-moz-keyframes fadeOutUp {
  777. 0% {
  778. opacity: 1;
  779. -moz-transform: translateY(0);
  780. }
  781. 100% {
  782. opacity: 0;
  783. -moz-transform: translateY(-20px);
  784. }
  785. }
  786. @-o-keyframes fadeOutUp {
  787. 0% {
  788. opacity: 1;
  789. -o-transform: translateY(0);
  790. }
  791. 100% {
  792. opacity: 0;
  793. -o-transform: translateY(-20px);
  794. }
  795. }
  796. @keyframes fadeOutUp {
  797. 0% {
  798. opacity: 1;
  799. transform: translateY(0);
  800. }
  801. 100% {
  802. opacity: 0;
  803. transform: translateY(-20px);
  804. }
  805. }
  806. @-webkit-keyframes fadeOutDown {
  807. 0% {
  808. opacity: 1;
  809. -webkit-transform: translateY(0);
  810. }
  811. 100% {
  812. opacity: 0;
  813. -webkit-transform: translateY(20px);
  814. }
  815. }
  816. @-moz-keyframes fadeOutDown {
  817. 0% {
  818. opacity: 1;
  819. -moz-transform: translateY(0);
  820. }
  821. 100% {
  822. opacity: 0;
  823. -moz-transform: translateY(20px);
  824. }
  825. }
  826. @-o-keyframes fadeOutDown {
  827. 0% {
  828. opacity: 1;
  829. -o-transform: translateY(0);
  830. }
  831. 100% {
  832. opacity: 0;
  833. -o-transform: translateY(20px);
  834. }
  835. }
  836. @keyframes fadeOutDown {
  837. 0% {
  838. opacity: 1;
  839. transform: translateY(0);
  840. }
  841. 100% {
  842. opacity: 0;
  843. transform: translateY(20px);
  844. }
  845. }