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

The Archive Base Latest Questions

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

I want to animate the css property clip: rect with jQuery’s .animate() but can’t

  • 0

I want to animate the css property clip: rect with jQuery’s .animate() but can’t find if this is possible anywhere. Have tried:

$(".img1").animate({
clip: "rect(1px, 945px, 499px, 1px)"
},300);

without any luck. Does anyone know?

Thanks

  • 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-09T07:07:44+00:00Added an answer on June 9, 2026 at 7:07 am

    Anything is possible, but there probably are easier ways to do what you want without using clip, but if you use jQuery animate’s fx.step function, you can animate anything, but you need to do some calculations to figure out values and stuff, but it goes something like this:

    $(".img1").animate({
      fontSize: 100 //some unimportant CSS to animate so we get some values
    },
    {
      step: function(now, fx) { //now is the animated value from initial css value
          $(this).css('clip', 'rect(0px, '+now+'px, '+now+'px, 0px)')
      }
    }, 10000);
    

    FIDDLE

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

Sidebar

Related Questions

I have a few divs that I want to animate using jQuery. However, I
I have a selection of elements in a jQuery object. I want to animate
i want to use .animate function but i have some problems i want to
I have this: var $ul = $(this).children(ul); $ul.animate({opacity: 0}, 1000); $ul.delay(1000).css(display, none) It's for
I want to delay things like the css from happening but this method wont
I have this jquery: $('.tbl-link').click(function(){ $('.tbl-content').animate({ opacity: 'show', //height: '+=300px', marginTop: '330px' }, 1200).css({
I have a little block that I want to animate. But I want it
I have a bunch of < li > elements which I want to animate
I want to use .animate to change colors when .bind('click') is fired, using jquery
I'm doing an animate with JQuery UI. I've go an icon which I want

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.