You are here

README.txt in Animations (JS/CSS) 8

Animations Drupal Module
================================================================================

The animations module consist of a set of cool cross-browser animations based on CSS/JS. You can easily add multiple predefined animations to your site, using CSS selectors in the module settings page.

Great for emphasis, home pages, sliders, and general just-add-water-awesomeness.

Installation & Usage Example
Download and install the module, use "drush animations-libraries" or download the libraries manually -> see requirements at the bottom.
To add the desired animation to all your "H1" tags as an example go to /admin/config/animations/config
Choose your desired effects and add one selector per line to apply the effect and save.
Selector Examples

CSS selector	Description
input, textarea	Use all single line text fields and textareas on site.
.your-form-class *	Use all text fields in given form class.
#your-form-id *	Use all text fields in given form id.
#your-form-id *:not(textarea)	Use all single line text fields but not textareas in given form id.
#your-form-id input:not(input[type=password])	Use all single line text fields but not password text fields in given form id.


For more advanced users: You can do a whole bunch of other stuff with animate.css when you combine it with jQuery or add your own CSS rules. Dynamically add animations using jQuery with ease:

$('#yourElement').addClass('animated bounceOutLeft');

List of animations
typewriter
bounce
flash
pulse
rubberBand
shake
headShake
swing
tada
wobble
jello
bounceIn
bounceInDown
bounceInLeft
bounceInRight
bounceInUp
bounceOut
bounceOutDown
bounceOutLeft
bounceOutRight
bounceOutUp
fadeIn
fadeInDown
fadeInDownBig
fadeInLeft
fadeInLeftBig
fadeInRight
fadeInRightBig
fadeInUp
fadeInUpBig
fadeOut
fadeOutDown
fadeOutDownBig
fadeOutLeft
fadeOutLeftBig
fadeOutRight
fadeOutRightBig
fadeOutUp
fadeOutUpBig
flipInX
flipInY
flipOutX
flipOutY
lightSpeedIn
lightSpeedOut
rotateIn
rotateInDownLeft
rotateInDownRight
rotateInUpLeft
rotateInUpRight
rotateOut
rotateOutDownLeft
rotateOutDownRight
rotateOutUpLeft
rotateOutUpRight
hinge
rollIn
rollOut
zoomIn
zoomInDown
zoomInLeft
zoomInRight
zoomInUp
zoomOut
zoomOutDown
zoomOutLeft
zoomOutRight
zoomOutUp
slideInDown
slideInLeft
slideInRight
slideInUp
slideOutDown
slideOutLeft
slideOutRight
slideOutUp

Add your effect? Propose it in the issue queue or write a patch :)

All the cool kids use Typed.js
https://slack.com
https://envato.com
https://productmap.co/
...

Dependencies
The module currently integrates the following libraries
Animate.css and typed.js - use "drush animations-libraries" after enabling the module to download all the libraries or download them manually.

Download, extract and rename the folders to have the correct paths:

[DRUPAL_ROOT]/libraries/animate/animate.css (downloaded from https://github.com/daneden/animate.css version 3.5.2 and higher)
[DRUPAL_ROOT]/libraries/typed/js/typed.js (downloaded from https://github.com/mattboldt/typed.js/ version 1.1.4 and higher)

File

README.txt
View source
  1. Animations Drupal Module
  2. ================================================================================
  3. The animations module consist of a set of cool cross-browser animations based on CSS/JS. You can easily add multiple predefined animations to your site, using CSS selectors in the module settings page.
  4. Great for emphasis, home pages, sliders, and general just-add-water-awesomeness.
  5. Installation & Usage Example
  6. Download and install the module, use "drush animations-libraries" or download the libraries manually -> see requirements at the bottom.
  7. To add the desired animation to all your "H1" tags as an example go to /admin/config/animations/config
  8. Choose your desired effects and add one selector per line to apply the effect and save.
  9. Selector Examples
  10. CSS selector Description
  11. input, textarea Use all single line text fields and textareas on site.
  12. .your-form-class * Use all text fields in given form class.
  13. #your-form-id * Use all text fields in given form id.
  14. #your-form-id *:not(textarea) Use all single line text fields but not textareas in given form id.
  15. #your-form-id input:not(input[type=password]) Use all single line text fields but not password text fields in given form id.
  16. For more advanced users: You can do a whole bunch of other stuff with animate.css when you combine it with jQuery or add your own CSS rules. Dynamically add animations using jQuery with ease:
  17. $('#yourElement').addClass('animated bounceOutLeft');
  18. List of animations
  19. typewriter
  20. bounce
  21. flash
  22. pulse
  23. rubberBand
  24. shake
  25. headShake
  26. swing
  27. tada
  28. wobble
  29. jello
  30. bounceIn
  31. bounceInDown
  32. bounceInLeft
  33. bounceInRight
  34. bounceInUp
  35. bounceOut
  36. bounceOutDown
  37. bounceOutLeft
  38. bounceOutRight
  39. bounceOutUp
  40. fadeIn
  41. fadeInDown
  42. fadeInDownBig
  43. fadeInLeft
  44. fadeInLeftBig
  45. fadeInRight
  46. fadeInRightBig
  47. fadeInUp
  48. fadeInUpBig
  49. fadeOut
  50. fadeOutDown
  51. fadeOutDownBig
  52. fadeOutLeft
  53. fadeOutLeftBig
  54. fadeOutRight
  55. fadeOutRightBig
  56. fadeOutUp
  57. fadeOutUpBig
  58. flipInX
  59. flipInY
  60. flipOutX
  61. flipOutY
  62. lightSpeedIn
  63. lightSpeedOut
  64. rotateIn
  65. rotateInDownLeft
  66. rotateInDownRight
  67. rotateInUpLeft
  68. rotateInUpRight
  69. rotateOut
  70. rotateOutDownLeft
  71. rotateOutDownRight
  72. rotateOutUpLeft
  73. rotateOutUpRight
  74. hinge
  75. rollIn
  76. rollOut
  77. zoomIn
  78. zoomInDown
  79. zoomInLeft
  80. zoomInRight
  81. zoomInUp
  82. zoomOut
  83. zoomOutDown
  84. zoomOutLeft
  85. zoomOutRight
  86. zoomOutUp
  87. slideInDown
  88. slideInLeft
  89. slideInRight
  90. slideInUp
  91. slideOutDown
  92. slideOutLeft
  93. slideOutRight
  94. slideOutUp
  95. Add your effect? Propose it in the issue queue or write a patch :)
  96. All the cool kids use Typed.js
  97. https://slack.com
  98. https://envato.com
  99. https://productmap.co/
  100. ...
  101. Dependencies
  102. The module currently integrates the following libraries
  103. Animate.css and typed.js - use "drush animations-libraries" after enabling the module to download all the libraries or download them manually.
  104. Download, extract and rename the folders to have the correct paths:
  105. [DRUPAL_ROOT]/libraries/animate/animate.css (downloaded from https://github.com/daneden/animate.css version 3.5.2 and higher)
  106. [DRUPAL_ROOT]/libraries/typed/js/typed.js (downloaded from https://github.com/mattboldt/typed.js/ version 1.1.4 and higher)