-
Adds Santas hat to page logo
-
Adds snow effect using three.js and canvas
Add this line to your application's Gemfile:
gem 'christmasify', git: 'https://github.com/liepa/christmasify.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install christmasify
application.css
*= require christmasify/hat
in view (parent element should be positioned relative)
<%= santas_hat %>
application.css
*= require christmasify/snow
application.js:
//= require christmasify
in view where snow will be rendered
<%= snow %>
And initialize snow on page ready (jQuery example)
jQuery(function(){
Christmasify.snow.init('header_container');
});
- Fork it ( http://github.com/liepa/christmasify/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request