Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.12 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.12 KB

Christmasify

  1. Adds Santas hat to page logo

  2. Adds snow effect using three.js and canvas

Installation

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

Santas hat

application.css

*= require christmasify/hat

in view (parent element should be positioned relative)

<%= santas_hat %>

Snow

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');
});

Contributing

  1. Fork it ( http://github.com/liepa/christmasify/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 new Pull Request