Rails helpers for Zurb-Foundation Framework.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/assets
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
caisson.gemspec

README.md

Caisson

Caisson provide a set of tools to facilitate the integration of Zurb-Foundation to your Rails project.

Install

gem install caisson

Rails 3

In your Gemfile:

gem 'zurb-foundation'
gem 'caisson'

In your application.js

//= require foundation
//= require caisson

In your application.scss

@import "foundation";

Orbit Slider

Basic examples

<%= orbit_slider ['apple', 'banana', 'peach'] do |fruit| %>
  <h1>I like <%= fruit %></h1>
<% end %>
<% images = ["img1.jpg", "img2.jpg", "img3.jpg", "img4.jpg"] %>
<%= orbit_slider images, columns_per_slide: 2 do |img| %>
  <img src="<%= img %>" />
<% end %>

Supported parameters

Name Default
animation_speed 400
bullets false
class slider
columns_per_slide 1
id
timer_speed 0

For more details on Orbit, see Foundation - Orbit.

Copyright

Copyright (c) 2013 De Marque inc. See LICENSE for further details.