Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8826505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:09:14+00:00 2026-06-14T07:09:14+00:00

I have a slideshow made with css3 animation like this: @-keyframes animBanner { 0%

  • 0

I have a slideshow made with css3 animation like this:

@-keyframes animBanner
{
0% {top: 0px;}
18% {top: 0px;}
20% {top: -60px;}
38% {top: -60px;}
40% {top: -120px;}
58% {top: -120px;}
60% {top: -180px;}
78% {top: -180px;}
80% {top: -240px;}
98% {top: -240px;}
100% {top: 0px;}
}

I want to add controls to it, so you can go to the pic you want.

I can trigger transition events with a simple javascript like this:

var p=document.getElementById('elemId');
p.style.left= '50%';

but it doesn’t work with animation. Is it possible to make this work or should I use jquery for the animation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:09:15+00:00Added an answer on June 14, 2026 at 7:09 am

    Shmiddty was right.

    I changed the classes using this code:

    //Stop animation
    var ad = document.getElementById('animBannerId');
    ad.className="paused";
    //Move the slide to the desired pic
    anuncio.style.top = '160px';
    //Etc.
    

    And my css has this code for the transitions:

    .paused
    {
    position: relative;
    transition:top 1s;
    -o-transition:top 1s;
    -webkit-transition:top 1s;
    -moz-transition:top 1s;
    }
    

    You, guys, are great. Thank you very much.

    By the way, I haven’t added a code for restarting the animation, but it can be done making a timer

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a simple slideshow.. It works like it should exepct when you
I have this slideshow that I'm trying to simply move up, but I can't
ok, so i have this slideshow.html containing just a bunch of pictures, and the
I have this slideshow with a overlay that pops up on hover, you can
Not sure if this is possible but I have a slideshow on my site
hi i'm using a script made by http://snook.ca/archives/javascript/simplest-jquery-slideshow so basically the code i have
Im trying to achive a slideshow that looks like this http://ge.tt/api/1/files/2AjKcVM/0/blob/x675?noinc=1 where the width
I have a slideshow set up with Magic fields like the code below, but
I have a custom made slideshow object to perform the usual stuff the name
I have THIS slideshow . I want it to auto-advance unless someone clicks the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.