No commit activity in last 3 years
No release in over 3 years
asset gem for ClickEffects by codrop
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

 Project Readme

click_effects-rails

NB: This is very rough

An asset gem for the stellar ClickEffects library from codrops.

I haven't included any of the custom SVG from codrop's original implementation, which means some of the animations may not work (e.g., zorka).

Also, I am lazy and this is rails, so I just used some hacky jQuery to add/remove the cbutton--click class.

Also also, I'm super lazy. I didn't include any of the modernizr code. You're free to lend a hand (pull request) to fix my lazy.

TODO

If you're awesome, you'll consider modularizing all of the animation code so one can include only the animations one needs.

Or, maybe you want to create a soild javascript interface for this little design-ditty.

Who knows? Go wild!

Installation

Add this line to your application's Gemfile:

gem 'click_effects-rails'

Then, add this line to your application.css file:

*= require click_effects

And this line to your application.js file:

//= require click_effects

And then execute:

$ bundle

Usage

See the article at codrops, or check out the demos.

Versioning

ClickEffects was not published with a version, so this Gem is starting out with 0.0.1. (I.e., please DO NOT consider it stable.)

License

See the original license for the codrop project here

Contributing

  1. Fork it ( https://github.com/brettimus/click_effects-rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request - we'll do the honor system that you tested it

Testing

I created an ad-hoc rails app to test the gem. Maybe I'll put that up later. ¯\_(ツ)_/¯