Exploring the possibilities of Jquery cycle combined with creative CSS webkit animations

I am currently using jQuery cycle for my slideshow. I want the numbers to stop and then roll whenever the next slide appears. I have the numbers rolling in an infinite sequence so they only fade in and out within the slideshow. However, I actually want to trigger the CSS animation with jQuery so that when the next slide comes, the numbers start rolling and then stop at the number I want. I hope I have made myself clear. Feel free to ask any questions. Thank you! http://jsfiddle.net/QGRv9/235/

Below is my CSS animation. The jQuery and HTML can be found in the fiddle.

 #wrapper_founded #date_anim span#first_num {
-moz-animation:first_num 6s infinite ease-in-out;
-webkit-animation:first_num 6s infinite ease-in-out;
animation:first_num 6s infinite ease-in-out;

}

@-moz-keyframes first_num {
60% {
    top:-61px;
}

80% {
    top:-61px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

@-webkit-keyframes first_num {
60% {
    top:-61px;
}

80% {
    top:-61px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

@keyframes first_num {
60% {
    top:-61px;
}

80% {
    top:-61px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

  #wrapper_founded #date_anim span#second_num {
-moz-animation:second_num 6s infinite ease-in-out;
-webkit-animation:second_num 6s infinite ease-in-out;
animation:second_num 6s infinite ease-in-out;
}

@-moz-keyframes second_num {
60% {
      top:-250px;
}

80% {
       top:-250px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

@-webkit-keyframes second_num {
60% {
      top:-250px;
}

80% {
      top:-250px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

@keyframes second_num {
60% {
     top:-250px;
}

80% {
     top:-250px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

  #wrapper_founded #date_anim span#third_num {
top:-381px;
-moz-animation:third_num 6s infinite ease-in-out;
-webkit-animation:third_num 6s infinite ease-in-out;
animation:third_num 6s infinite ease-in-out;
}

@-moz-keyframes third_num {
60% {
    top:3px;
}

80% {
    top:3px;
}

95% {
    top:-381px;
}

100% {
    top:-381px;
}
}

@-webkit-keyframes third_num {
60% {
    top:3px;
}

80% {
    top:3px;
}

95% {
    top:-381px;
}

100% {
    top:-381px;
}
}

@keyframes third_num {
60% {
    top:3px;
}

85% {
    top:3px;
}

95% {
    top:-381px;
}

100% {
    top:-381px;
}
}

  #wrapper_founded #date_anim span#fourth_num {
-moz-animation:fourth_num 6s infinite ease-in-out;
-webkit-animation:fourth_num 6s infinite ease-in-out;
animation:fourth_num 6s infinite ease-in-out;
}

@-moz-keyframes fourth_num {
60% {
    top:-377px;
}

80% {
    top:-377px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

@-webkit-keyframes fourth_num {
60% {
    top:-377px;
}

80% {
    top:-377px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

@keyframes fourth_num {
60% {
    top:-377px;
}

80% {
    top:-377px;
}

95% {
    top:0;
}

100% {
    top:0;
}
}

Answer №1

Have you ever considered giving Cycle2 a try? I have a feeling it might be more beneficial for you, my friend...

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

HTML generates areas of blank space

Currently, I am in the process of developing a web page using Angular 2 and PrimeNG Design Framework. The layout is simple, with a menu bar at the top and content below it to fill the remaining space. However, there seems to be an unexplained gap at the bo ...

What is the best way to ensure my header element is positioned above my h2 element on the webpage?

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> <div id="page-wrapper"> <header id="header"> Hoppity Edits <div class="logo"> <im ...

Leveraging datatable in node.js applications

I'm attempting to integrate jquery Datatable with Node.js and here is the HTML code snippet I have: <button id="btnSearch" type="submit" class="btn btn-responsive"><i class="icon-search"></i>&nbsp;Search</button> <div ...

When attempting to send data from Ajax to PHP as JSON, an error occurs and the data transmission fails

When attempting to send data as JSON, an error response is received stating: SyntaxError: Unexpected token < in JSON at position 0. If the data is sent as text, it successfully reaches PHP, but PHP does not respond accordingly. AJAX/JavaScript using J ...

What is the best approach in JavaScript (jQuery) to loop through every 'a' element on a webpage, sequentially applying a unique style to each one?

Imagine this scenario: On a webpage, there are multiple 'a' tags with different alt tag values: <a href="img1.jpg" class="myClass" alt="0,0,600,200"></a> <a href="img2.jpg" class="myClass" alt="200,0,600,75"></a> <a hr ...

Struggle with incorporating a file

As part of the login process, I have two options available: easy login and standard login. The easy login requires an employee ID, birthdate, and captcha answer, while the standard login asks for first name, last name, birthdate, and captcha. To facilitate ...

Display a jQuery popup window when validation is needed

Currently, I am facing a few issues with the username and password text boxes in my asp.net application. Before clicking the login button, I want to ensure that the fields are not empty. The first issue is related to a validation message ("username and p ...

Disallow/bound the position of the marker on Google Maps

Is there a way to restrict the placement of markers on a map? I am looking for a solution that allows me to limit the marker position within a specific area, such as a town, with a radius of 10km. It should prevent users from dragging or creating new mark ...

Modifying modal content disrupts AJAX events

When using jquery-ujs for ajax requests with data-remote="true", I encounter an issue where the first request goes smoothly but subsequent ones break. It seems that when certain events like $('#modal').empty(), $('#modal').tex ...

How to store AJAX data for future use when a tab is selected by the user?

Utilizing AJAX calls, I am populating the content of my tabs using the tabs widget from the jQuery UI library. Here is what my code looks like: <script type="text/javascript"> $(function() { $("#tabs").tabs({ load: function( ...

The issue of WordPress failing to correctly resolve logout URLs within menu items

UPDATE: Adding the code below: alert(LogoutURL); reveals that the URL is not correctly passed to the JS variable. It appears to be encoded when transferred to the JS var. I confirmed this by executing the following in my PHP: <?php echo wp_logout_ur ...

Tips for automatically scrolling images horizontally in responsive layouts

Recently, I've been working on a website called . On the homepage, my portfolio images are arranged in a grid format using the <li> tag. I'm looking to align them side by side and have them scroll horizontally automatically, preferably with ...

Conceal or reveal content within two dividers

Two <div> elements are present, referred to as div1 and div2. Before clicking submit, I want div1 to be displayed and div2 to be hidden. However, after submitting, I want div1 to hide and div2 to show. The code within kanjiconverter.php is: < ...

Tips for resolving issues with pagination links not refreshing after being clicked in Codeigniter with the help of AJAX

I'm currently working on implementing pagination links into my website using ajax to prevent the page from reloading. Although I've successfully made it functional, the issue arises when the pagination links fail to update. Whenever I click on th ...

Strategies for delivering CSS exclusively to up-to-date browsers

What are some methods for serving CSS exclusively to modern browsers while displaying plain, unstyled HTML to outdated versions of Internet Explorer? I am currently employing the following approach, but I am not particularly thrilled about having my main ...

Tips for adding a search button within the input field

My goal is to incorporate a circular search button at the end of an input field, but I'm struggling with the logic to achieve this. I am using Font Awesome to display the icons. .search-box { outline: none; padding: 7px; padding-left: 10px; ...

The container-fluid class expands to full width of the page, except for the navbar

Hey there, looking for some help with your CSS design? Let's take a look at your code snippet: .container-fluid-1 { padding: 0; } .navbar { ...

Ensuring uniqueness of group by values in JavaScript when a textbox loses focus

Make sure the first column is unique by preventing duplicate entries in the second column textbox using JavaScript on blur event. <table rules="all" class="table table-bordered"> <tbody> <tr> < ...

Pause the scrolling div on hover using jQuery

Currently, I have implemented a WordPress plugin that allows for infinite scrolling of posts. However, I am looking to add a feature where the scroll stops when hovering over a post. I attempted to achieve this using the following script: <script> ...

Ways to match a string against a numeric value

I have a span id with textContent which have their own time(hour/minutes) <div class="here"> <span class="time" >8 min</span> </div> <div class="here"> <span class="time" >22 min&l ...