Project

caisson

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Caisson will provide a set of tools to facilitate the integration of Zurb-Foundation to your Rails project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0.8.7
>= 2.0
 Project Readme

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.