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 7843833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:41:02+00:00 2026-06-02T16:41:02+00:00

I want to increase/decrease the font of and element, then the next element of

  • 0

I want to increase/decrease the font of and element, then the next element of that class and so forth, for a set of elements as <div class="test"></div> <div class="test"></div> ..... I mean

step 1: enlarging the first element and returning to normal size
step 2: enlarging the second element and returning to normal size
....

My basic code is

$(document).ready(function() {
    $('.test').animate({
               left:50,
               fontSize: "2em"},
               "slow")
               .animate({
               left:-50,
               fontSize: "1em"},
               "slow");

This will affect all the elements at once. How can I make a queue to make the changes one by one. Having one enlarged element at a time.

  • 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-02T16:41:03+00:00Added an answer on June 2, 2026 at 4:41 pm

    You could do it with

    $('.test').each(function(idx){
        var duration = 1200; // duration for all animations (2 x slow)
        $(this)
             .delay(duration*idx)
             .animate({ left:50, fontSize: "2em" }, 'slow')
             .animate({ left:-50, fontSize: "1em" }, 'slow');
    });
    

    Demo at http://jsfiddle.net/gaby/rz5Es/


    For more precise control and more freedom on queuing look at my answer at a similar question:
    A non-nested animation sequence in jQuery?

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

Sidebar

Related Questions

For each click I want to increase the font size. $('#fontplus').each(function('click') { var fs
I have written this code where I want to increase / decrease number of
I have a HTML page where I want one button to increase the font
I want to increase or decrease or even mute the volume of movie player
I'm having trouble to get a font increase/decrease jquery function done. It has 3
Im looking for a way to present a flexible font, that will increase and
I want to decrease a value by one and if it reaches zero, set
I want to set the font size of button on componentResized event. I get
I have input text and I want to increase the number that is inside
If I increase the number of mappers and decrease the number of reducers, then

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.