Anijs::Rails
Gem to add animations and web design without coding, You can easily use animations in your Rails application by using this gem.
Installation
Add this line to your application's Gemfile:
gem 'anijs-rails'And then execute:
$ bundle install
Or install it yourself as:
$ gem install anijs-rails
Usage
-
Add these lines to your assets.rb file Rails.application.config.assets.precompile += %w( anicollection.css ) Rails.application.config.assets.precompile += %w( anijs-min.js ) adasd
-
Add these lines to application.html.erb <%= javascript_include_tag 'anijs-min' %> (add this line to bottom of your html file, after tag) <%= stylesheet_link_tag 'anicollection.css' %> (add top of the html file)
-
Good to go, you can play now. There are lot of syntax (For Example: you can add this attribute data-anijs="if: click, do: flipInY animated" to your html tag for flip in animation)
-
You can check and use these syntax in anijs.io
Issues
If you have any issues you can report it here issues
License
The gem is available as open source under the terms of the MIT License.