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

  • SEARCH
  • Home
  • 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 6735043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:57:41+00:00 2026-05-26T10:57:41+00:00

Need help with a javascript on a button to trigger these transformations like a

  • 0

Need help with a javascript on a button to trigger these transformations like a slider 1,2,3 and alternate back and forth. Like on the apple website for iPhone features slider. Anyone?

The HTML:

<div id="anima-slide1">
  <div class="anima-text-slide1">Genuinity comes at a price.<br>
    <font color="#f06">Will you pay it?</font></div>
  <div class="anima-image-slide1"><img src="img/lowrider1.png" width="250" height="250"> </div>
</div>

<div id="anima-slide2">
  <div class="anima-text-slide2">Genuinity comes at a price.<br>
    <font color="#f06">Will you pay it?</font></div>
  <div class="anima-image-slide2"><img src="img/lowrider1.png" width="250" height="250"> </div>
</div>

<div id="anima-slide3">
  <div class="anima-text-slide3">Genuinity comes at a price.<br>
    <font color="#f06">Will you pay it?</font></div>
  <div class="anima-image-slide3"><img src="img/lowrider1.png" width="250" height="250"> </div>
</div>

The CSS: (Same for 2 and 3)

.anima-text-slide1 {
    margin-top:10px;
    position:absolute;
    font-family: 'BebasRegular';
    color:#FFF;
    font-size:40px;
}
.anima-text-slide1 {
    -webkit-backface-visibility: visible;
    -webkit-transition: 900ms ease;
    opacity: 0;
    -webkit-transform: translate(-497px, 0px) rotate(0deg);
}
.anima-image-slide1 {
    position:absolute;
    left: 610px;
    top: 0px;
}
.anima-image-slide1 {
    -webkit-backface-visibility: visible;
    -webkit-transition: 900ms ease;
    opacity: 0;
    -webkit-transform: translate(497px, 0px) rotate(0deg);
}
  • 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-05-26T10:57:41+00:00Added an answer on May 26, 2026 at 10:57 am

    By adding a class name you can create several animation steps. Using jQuery makes it a lot easier to change the class names on the target element. You can apply this technique to your particular situation.

    <div class="container">
    Hello
    </div>
    
    <a href="javascript://" onclick="setFrame('frame1')">Frame 1</a>
    <a href="javascript://" onclick="setFrame('frame2')">Frame 2</a>
    

    JS:

    function setFrame(frameName) {
        $('.container').addClass(frameName);
    }
    

    CSS:

    .container {
         font-size:24px;   
    }    
    .frame1 {
        font-size:48px;
        -webkit-backface-visibility: visible;
        -webkit-transition: 900ms ease;
        opacity: 20;
        -webkit-transform: translate(200px, 0px) rotate(0deg);
    }
    .frame2 {
        font-size:64px;
        color:#ff0000;
        -webkit-backface-visibility: visible;
        -webkit-transition: 900ms ease;
        opacity: 20;
        -webkit-transform: translate(0px, 150px) rotate(30deg);
    }
    

    EDIT:

    So if you want to do multiple elements you can do something like this:

    .containerA .frame1 {
    ... 
    } 
    
    .containerB .frame1 {
    ...some different style... 
    } 
    

    Then:

       function setFrame(frameName) {
            $('.containerA').addClass(frameName);
            $('.containerB').addClass(frameName);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Need the right Column elements to be flush with the javascript back button
I need help to find a hidden button in Javascript. I am using ASP.NET
Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded
I need a JavaScript library that supports Ajax as well as help me in
I need help understanding some C++ operator overload statements. The class is declared like
I need to activate cpa lead when the button is press. code: <script type=text/javascript
I need help with the javascript below please. I have 2 text boxes and
I need help with some Regexp Javascript/JQuery. I got it working, but I think
I am not very familiar with javascript and I need a help here. I
I need help here. My jQuery code does not return the submit button name

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.