[wp-trac] [WordPress Trac] #21066: A slideshow/carousel for the Twenty Eleven Showcase

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 1 20:48:06 UTC 2012


#21066: A slideshow/carousel for the Twenty Eleven Showcase
--------------------------------+------------------------------
 Reporter:  gorgoglionemeister  |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Bundled Theme       |     Version:  3.4
 Severity:  normal              |  Resolution:
 Keywords:  close               |
--------------------------------+------------------------------
Changes (by kobenland):

 * keywords:   => close
 * component:  Themes => Bundled Theme


Comment:

 Hm, I'd consider this plugin (or Child Theme) territory.

 This is the code I use to make it work, [http://pastebin.com/s6JEthVi
 modeled after an example]:
 {{{
 #!js
 jQuery(function($) {

         $('.feature-slider a').click(function(e) {
                 $('.featured-posts section.featured-post').css({
                         opacity: 0,
                         visibility: 'hidden'
                 });
                 $(this.hash).css({
                         opacity: 1,
                         visibility: 'visible'
                 });
                 $('.feature-slider a').removeClass('active');
                 $(this).addClass('active');
                 e.preventDefault();
         });

         var current = 1;
         setInterval(function(){
                 $('.feature-slider a').eq(current % $('.feature-slider
 a').length).trigger('click',[true]);
                 current++;
         },4000);
 });
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21066#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list