animated divs or table rows

Posted on 2014-10-18
Last Modified: 2014-11-27

say for eg: If I have some HTML that has divs or rows. Is it possible to animate them so that they slide upward continuously at a defined speed?

What I want to do is post some announcements into a div and have them slide on the webpage for an animated effect.

Please help...
Question by:Techsavy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 17

Expert Comment

ID: 40389867
Of course.  Jquery as you may know offers this as an option.

You can always DL the UI and play with the code here.

LVL 58

Expert Comment

ID: 40390045

Author Comment

ID: 40391169
Hi Gary,

Your solution is very close but it is not very animated i.e it pauses and moves up but I am looking for more smooth and continuous moment. It needs to slow down a little bit.

Please help..
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

LVL 58

Expert Comment

ID: 40391173
Just wanted to know if that was what you were looking for
Will put something together

Whats your actual markup?
LVL 58

Accepted Solution

Gary earned 500 total points
ID: 40392455
There will be a slight pause as it restarts the cycle

rowHeight = $("ul li").outerHeight();

ticker = " ul li";

children = $("div ul li").length;


var scroller = function () {
        marginTop: "-" + (children * rowHeight) + "px"
    }, 5000, function () {
        $("ul:first").insertAfter($("ul:last")).css("margin-top", 0);


Open in new window


Author Comment

ID: 40417249
Hi Gary,

This code is not working when I put it on a SharePoint page. basically there will be other divs and ul and li elements. we have to make it much more smarter
LVL 58

Expert Comment

ID: 40417268
Well you have to specify the class or ID of the UL - it won't work as it is if you just put in a page with other ul's in it.

Author Closing Comment

ID: 40469504
Good solution!

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question