0.0
No commit activity in last 3 years
No release in over 3 years
Makes it simple to include the anime.js library (by Guinsly Mondesir) in the Rails asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.7
> 3.1.0
~> 10.0
 Project Readme

AnimeJsRails

Makes it simple to include the anime.js library in the Rails asset pipeline.

Animation example

var myAnimation = anime({
  targets: ['.blue', '.green'],
  translateX: '13rem',
  rotate: 180,
  borderRadius: 8,
  duration: 2000,
  loop: true
});

Basic animation

Live example on CodePen

Installation

Add this line to your application's Gemfile:

gem 'anime_js_rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install anime_js_rails

Configuration Ruby on Rails

#app/assets/javascript/application.js
//= require anime
#config/initializers/assets.rb
Rails.application.config.assets.precompile += %w( anime.js )
#or
Rails.application.config.assets.precompile += [/.*\.js/,/.*\.css/]

Contributing

  1. Star it
  2. Fork it ( https://github.com/guinslym/anime_js_rails )
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request