Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: website animation

    Changed the text to an animated gif and it works fine. I was afraid the animated gif wouldn't work due to the updating position, but it works well.

    LINK
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  2. #12
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: website animation

    Yes, grasping that now Acorn. Now the next question ........ Sorry
    How do you get it to loop? I've tried a while statement but I can't find where to place the code.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  3. #13
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: website animation

    Egg, I think you need to manually repeat the animation. This could be done with the following code change:
    Code:
    <script>
    $(document).ready(function anim_plane(){
      $("#animate").css("right","0px").animate({right: 1500}, 20000, "linear", anim_plane);
    });
    </script>
    Last edited by siran; 18 October 2017 at 05:35 AM. Reason: code without named function

  4. #14
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: website animation

    That works a treat, thank you Siran.

    EDIT: Updated LINK in earlier post to include the looping
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

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
  •