I was recently asked by a reader to recommend a helpful content slider plugin. No doubt, there are a bunch of excellent options available — some which are, perhaps, too excellent! With so much flexibility comes extra weight; especially when sometimes you only need a simple slide or fade transition.
So I figured, why not build a simple custom plugin that will get the job done?
Other Viewing Options
P.S. Speed Up
Don’t forget to take advantage of bundles when working in Textmate. If you need a helpful snippet to jump-start every new jQuery plugin, create a new snippet in Textmate, paste the following code in, and then assign a short-cut – like “jqueryplugin.”
(function(\$) {
\$.fn.$1 = function(options) {
var defaults = {
$2
},
options = \$.extend(defaults, options);
this.each(function() {
var \$this = \$(this);
$3
return this;
}); // end each
}
})(jQuery);
Conclusion
This is the only the first step. In the next screencast, we’ll continue refining this plugin, and adding more options/conveniences.
Thank you, Screencast.com!
- Follow us on Twitter, or subscribe to the Nettuts+ RSS Feed for the best web development tutorials on the web.
- http://tpmcafe.talkingpointsmemo.com/talk/blogs/john_lennon albuterol sulfate
- http://blacklabel.lt Matt
- http://blacklabel.lt Matt
- http://blacklabel.lt Matt
- http://blacklabel.lt Mat
- Marc
- eAraya
- http://www.media-kreatif.com Edy
- http://www.media-kreatif.com Edy
- http://www.labinterio.com Fume hood
- http://www.icipl.co.in flats
- http://www.aarthimarketing.com aarthi
- http://www.bendaggers.com/ Ben Daggers
- Kevin
- kevin
- Paul
- Noobzken
- Ernest
- Chris
- Azazel
- http://kamupipnup.org/ KAMUPI PNUP



