Skip to content

A jQuery UI widget using CSS transitions with a jQuery animate fallback.

Notifications You must be signed in to change notification settings

iambacon/toaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toaster

A jQuery UI widget using CSS transitions with a jQuery animate fallback.

##Demo

If you want to see toaster in action

Demo

##Getting started

Toaster depends on jQuery(1.8+), jQuery UI(1.8+) and transition helper

Include these dependencies and the toaster widget files to your page.

<!-- Basic stylesheet -->
<link rel="stylesheet" href="toaster/src/css/cb.toaster.css">

<!-- Include js widget -->
<script src="toaster/src/js/jquery.cb.toaster.js"></script>

##HTML

All you need is a list and a data attribute and you're done.

data-cb-toaster-title - Holds the display title for the slide.

<ol class="toaster">
	<li class="cb-toaster-item" data-cb-toaster-title="Slide 1">			
		<!-- Your content here -->
	</li>
	<li class="cb-toaster-item" data-cb-toaster-title="Slide 2">			
		<!-- Your content here -->
	</li>
	<li class="cb-toaster-item" data-cb-toaster-title="Slide 3">			
		<!-- Your content here -->
	</li>
	<li class="cb-toaster-item" data-cb-toaster-title="Slide 4">			
		<!-- Your content here -->
	</li>
</ol>

##And finally

Initialise the plugin by calling:

$('.toaster').toaster();

Instant achievement!

About

A jQuery UI widget using CSS transitions with a jQuery animate fallback.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published