Welcome to TalkGraphics.com
Results 1 to 10 of 11

Threaded View

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,886

    Info Simple Carousel using jQuery

    In a separate Thread, I (foolishly) suggested that I could implement a carousel using the same approach: https://www.talkgraphics.com/showthr...ages-is-loaded

    I have used the same graphics and their positions so do not panic that things are popping up all over.

    To create your own carousel:

    1. Collect a set of images, objects or graphics and centre them all together on your page.
    2. Give them all the Name htmlclass=illy.
    3. Add the simple Carousel Widget to your page as the topmost object.
    4. Done.


    To customise for yourself:
    1. The Widget has a Name UsesJQuery - don't remove this.
    2. Add a backdrop box or shape - don't Name it.
    3. The order of your objects is changed in the Page and Layer gallery.
    4. The fade in and out times and the show time can be altered in the Widget Body code:


    Code:
    <script>
    $(document).ready(function(){
    
    (function fade(idx) {
      var $illy = $('.illy');
      $illy.hide();
      $illy.eq(idx).fadeIn(1000).delay(8000).fadeOut(1000, function () {
        fade(idx + 1 < $illy.length ? idx + 1 : 0);
      });
    }(0));
    
    });
    </script>
    Acorn
    Last edited by Acorn; 24 July 2017 at 03:58 PM. Reason: TG is mucking around with attachment up loads again - I will add later.
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •