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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:08:58+00:00 2026-06-01T17:08:58+00:00

<style type=text/css> @-webkit-keyframes waveArm{ 0%,100% { -webkit-transform:rotate(0deg); } 10%,30%,50%,70%,90% { -webkit-transform:rotate(90deg); } 20%,40%,60%,80% {

  • 0
<style type="text/css">

@-webkit-keyframes waveArm{
    0%,100% {
        -webkit-transform:rotate(0deg);
    }
    10%,30%,50%,70%,90% {
        -webkit-transform:rotate(90deg);
    }
    20%,40%,60%,80% {
        -webkit-transform:rotate(45deg);
        }
}

#arm {
    position:absolute;
    top:135px;
    left:135px;
    width:201px;
    height:74px;
    background:url(test-arm.png) 0 0 no-repeat;
    -webkit-animation: waveArm 3s 1s 1;
    -webkit-transform-origin:81% 46%;
}

</style>

<div id="arm"></div>

enter image description here

I would like to know if there is way to calculate the transform-orgin X and Y values using the height and width of an object so that it pivots around a single point smoothly like an arm and shoulder waving.

In this case i figured it out to be 81% and 46% through trial and error but would like a simpler method.

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-01T17:08:59+00:00Added an answer on June 1, 2026 at 5:08 pm

    Aaah! Figured it out in px. Easy really!

    The width of the arm is 201px and the height is 74px.
    The pivot point i needed is 34px from the top and 34px from the right.

    X starts from the left. Y starts from the top so…
    X = 201-34 = 167

    Y = 34

    -webkit-transform-origin:167px 34px;

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

Sidebar

Related Questions

I have the following javascript: css = document.createElement('style'); css.setAttribute('type', 'text/css'); css_data = document.createTextNode(''); css.appendChild(css_data);
This is my css content :- <style type = text/css> li { display:inline; }
Here is my code <!DOCTYPE HTML> <html> <head> <style type ='text/css'> * { font-family:Arial,
Here is a complete test case: <!DOCTYPE html> <html> <head> <title>test</title> <style type=text/css> html,
For example, in that html code I add list-style-type: none; in external test.css. When
I have this: <ul class=deposit style=float:left;list-style-type:none;> <a href=javascript:void(0) id=inc><li class=first>+</li></a> <a href=javascript:void(0) id=dec><li class=second>-</li></a>
I've got a stylesheet that will not, for whatever reason, apply list-style-type to a
Why is there no list-style infinite type error when I define something like this
What are the proper uses of: static_cast dynamic_cast const_cast reinterpret_cast (type)value (C-style cast) type(value)
How to set the default style for a type in code-behind e.g. for: <ScaleTransform

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.