Skip to content

Commit

Permalink
Major update to include options
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Thornbloom committed Dec 13, 2013
1 parent c3fa105 commit a57917f
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 197 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,41 @@ http://kthornbloom.com/smoothslides

##Features

- Lightweight [3.5Kb]
- Four Animation Types: Zoom In, Zoom Out, Pan Left, Pan Right
- Lightweight [6Kb]
- Four Animation Types: Zoom In, Zoom Out, Pan Left, Pan Right, Pan Up, Pan Down
- Easily add captions
- CSS3 transitions for smoother effects
- Responsive image sizes
- Set various defaults

##Usage

- Include jQuery, smoothslides.js, and smoothslides.css
- Include smoothslides.css in the header
- Include jQuery and smoothslides.min.js in the footer
- Create a div with a class of "ss-slides". Create each slide within as a div called "ss-slide" and place your image inside. Images should be the same size.
- Want a caption? Add a title attribute to your "ss-slide" div.
- Call your script:
<script type="text/javascript">
$(window).load( function() {
$(document).smoothSlides();
});
- Or, to specify options, call your script like this:
$(window).load( function() {
$(document).smoothSlides({
/* milliseconds */
playTimer: 4000,
/* CSS easing type */
animEasing: 'ease-in-out',
/* Options are: none, random, zoomIn, zoomOut, panLeft, panRight, panUp, panDown */
autoanimType: 'random',
nextText: 'Next',
prevText: 'Prev',
captions: 'true',
navigation: 'true'
});
});
</script>



##Browser Support
- Full support: Chrome, Safari, Firefox (16+), Internet Explorer (9+)
Expand Down
43 changes: 9 additions & 34 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,42 +89,17 @@ <h1>Smoothslides</h1>
</div>
<br>


<h2>Features</h2>
<ul>
<li>Lightweight [3.5Kb]</li>
<li>Four Animation Types: Zoom In, Zoom Out, Pan Left, Pan Right</li>
<li>Easily add captions</li>
<li>CSS3 transitions for smoother effects</li>
<li>Responsive image sizes (resize this page)</li>
</ul>

<h2>Usage</h2>
<ol>
<li>Include jQuery, smoothslides.js, andsmoothslides.css</li>
<li>Create a div with a class of "ss-slides". Create each slide within as a div called "ss-slide" and place your image inside. Images should be the same size.</li>
<li>Want a caption? Add a title attribute to your "ss-slide" div.</li>
</ol>



<h2>Customization</h2>
The slideshow will randomly pick animation effects as it plays. The timing of the slideshow is set in milliseconds via the playTimer variable within the javascript file.
The styling of the slideshow can be changed by editing the kenburns.styles.css file.

<h2>Browser Support</h2>
<ul>
<li>Full support: Chrome, Safari, Firefox (16+), Internet Explorer (9+)</li>
<li>Supported without transitions: Internet Explorer 7-8, Firefox (-16)</li>
<li>Unsupported: Internet Explorer 6</li>
</ul>

<h2>Download</h2>
<a href="https://github.com/kthornbloom/Smoothslides" id="hub">Find me on Github</a>
<h2>Download & Info</h2>
<a href="https://github.com/kthornbloom/Smoothslides" id="hub">Github</a>
</div><br>
<!-- JS ======================================================= -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
<script type="text/javascript" src="js/smoothslides.js"></script>

<script type="text/javascript" src="js/smoothslides.min.js"></script>
<script type="text/javascript">
$(window).load( function() {
// use default options
$(document).smoothSlides();
});
</script>
</body>
</html>
Loading

0 comments on commit a57917f

Please sign in to comment.