473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Animate the headings of a slider in a loop at the same time.

down vote
favorite
Animate the headings of a slider in a loop at the same time.

Hi All,

I want to animate 3 headings at the same time with some delay but I am having problem to doing this.For now only one heading is animate and remaining are on their position.Basically these are the sliders headings and animate in a loop.

Heading-1 = image-1 heading
Heading-2 = image-2 heading
Heading-3 = image-3 heading
All these headings are displaying at the top and when user clicks on the arrow to slide the next image Heading-2 animate and slide on Heading-1 position and Heading-3 animate and slides on Heading-2 position and Heading-1 slides to Heading-3 position.Below is my CSS code. Thanks


Expand|Select|Wrap|Line Numbers
  1. .thumbNav li:nth-of-type(1) a.cur
  2.     {
  3.         animation: mymovea 5s forwards;
  4.         position: relative;
  5.         webkit-animation: mymovea 5s forwards;
  6.     }
  7.     @-webkit-keyframes mymovea
  8.     {
  9.         0%
  10.         {
  11.             top: 0px;
  12.         }
  13.         25%
  14.         {
  15.             top: 200px;
  16.         }
  17.         75%
  18.         {
  19.             top: 50px;
  20.         }
  21.         100%
  22.         {
  23.             top: 220px;
  24.         }
  25.     }
  26.     @keyframes mymovea
  27.     {
  28.         0%
  29.         {
  30.             top: 0px;
  31.         }
  32.         25%
  33.         {
  34.             top: 200px;
  35.         }
  36.         75%
  37.         {
  38.             top: 50px;
  39.         }
  40.         100%
  41.         {
  42.             top: 220px;
  43.         }
  44.     }
  45.     .thumbNav li:nth-of-type(2) a.cur
  46.     {
  47.         animation: mymoveb 5s forwards;
  48.         position: relative;
  49.         webkit-animation: mymoveb 5s forwards;
  50.     }
  51.     @-webkit-keyframes mymoveb
  52.     {
  53.         0%
  54.         {
  55.             top: 0px;
  56.         }
  57.         25%
  58.         {
  59.             top: 200px;
  60.         }
  61.         75%
  62.         {
  63.             top: 50px;
  64.         }
  65.         100%
  66.         {
  67.             top: 150px;
  68.         }
  69.     }
  70.     @keyframes mymoveb
  71.     {
  72.         0%
  73.         {
  74.             top: 0px;
  75.         }
  76.         25%
  77.         {
  78.             top: 200px;
  79.         }
  80.         75%
  81.         {
  82.             top: 50px;
  83.         }
  84.         100%
  85.         {
  86.             top: 150px;
  87.         }
  88.     }
  89.     .thumbNav li:nth-of-type(3) a.cur
  90.     {
  91.         animation: mymovec 5s forwards;
  92.         position: relative;
  93.         webkit-animation: mymovec 5s forwards;
  94.     }
  95.     @-webkit-keyframes mymovec
  96.     {
  97.         0%
  98.         {
  99.             top: 0px;
  100.         }
  101.         25%
  102.         {
  103.             top: 200px;
  104.         }
  105.         75%
  106.         {
  107.             top: 50px;
  108.         }
  109.         100%
  110.         {
  111.             top: 60px;
  112.         }
  113.     }
  114.     @keyframes mymovec
  115.     {
  116.         0%
  117.         {
  118.             top: 0px;
  119.         }
  120.         25%
  121.         {
  122.             top: 200px;
  123.         }
  124.         75%
  125.         {
  126.             top: 50px;
  127.         }
  128.         100%
  129.         {
  130.             top: 60px;
  131.         }
  132.     }
Oct 22 '14 #1
0 1177

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Alo Sarv | last post by:
Hi From what I have understood from various posts in this newsgroup, writing event loops pretty much comes down to this: while (true) { handleEvents(); sleep(1); // or _sleep() or...
3
by: Szabolcs Nagy | last post by:
I have to measure the time of a while loop, but with time.clock i always get 0.0s, although python manual sais: "this is the function to use for benchmarking Python or timing algorithms" So i...
20
by: Jean Johnson | last post by:
Hello - I have a start and end time that is written using the following: time.strftime("%b %d %Y %H:%M:%S") How do I calculate the elapsed time? JJ
1
by: Israel | last post by:
The problem: I want to know, definitively when a slider loses focus after a user has started sliding and hasn't released the mouse yet. It appears that this is captured with the WM_ACTIVATEAPP...
4
by: nico3334 | last post by:
I'm not that familiar with arrays so I'll try to explain my problem as clear as possible. I have 2 text boxes in VB where users are basically allowed to choose a date range up to 12 months. The...
4
by: chellemybelle | last post by:
Hello, I basically have made a little cheezy slideshow and would like to add captions to each pic as it loops through. I've tried everything I can think of. I'm assuming I might need to use an...
6
by: lukasso | last post by:
Hi, this is my code that should produce something like a timetable for a few days with each day divided into 30 minute pieces. It makes query from MySQL and then creates a 2d $array which then is to...
3
by: bhavyagupt | last post by:
i 'm not able to use the accordion menu code in for loop . can anyone solve ma problem. code....... slider.js------> java script var slider=function(){ var array=; var speed=10; var...
2
by: neovantage | last post by:
Hey, i have found a code which generate headings at run time. here is my code which generate headings at run time <img src="generate-headings.php?w=125&amp;hd=Code" /> $im =...
1
by: Carol B | last post by:
How can I loop this function to play forever? $(document).ready(function animateText() { $('.first').animate({right: '1500px'}, 3000); //Do you know? $('.first').animate({left: '1000px'},...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.