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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:48:24+00:00 2026-05-30T05:48:24+00:00

I created this page for better understanding the question. As you can see using

  • 0

I created this page for better understanding the question. As you can see using CSS3 we can rotate an element around the X,Y or Z axis using transform: rotate[XYZ](M deg/rad).

But I’m looking for a function to rotate the element on any given line. For example, rotating the element on x=y line. or even more complex y=2x+3.

If you don’t understand it please hold a paper in hand and flip it from its two far corners (for y=x or y=-x). or look at this picture.

enter image description here

enter image description here

I’m guessing it would be combination of two rotations, but I don’t know how to calculate the rotations.

Update:

I didn’t know there is a rotate3d function for CSS transform. this function accepts four arguments rx, ry, rz and deg. I feel that would be very helpful for this problem.

Other thing is when we change translate[X,Y,Z] it actually changing the origin of rotation. That mean if you want to rotate around Y=10px you should change the translateZ to 10px

Update2:

My Actual goal is creating a tool to apply CSS transform property using a GUI. as you can see in my jsbin file. I want to extend it to whatever transform possible you can do. One of them is rotation. I’m sure it’s possible to rotate an element around other lines than x=0… but I don’t know how can I do the calculation. For example rotation 45deg around Y and 45deg around Z is same as rotating 45 deg around x=y. I need a solution for all lines in the space.

  • 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-30T05:48:25+00:00Added an answer on May 30, 2026 at 5:48 am

    Solution for question I’m asking is css transform function, rotate3d. Using this function we could rotate DOM elements around any line in 3D space.

    This function accepts four arguments that three first are x, y and z and last one is rotation. As I understand how this function work you can translate your line linear algebra function into rotate3d like this:

    If you have a line function like 1x + 2y + 3z = 0 and want to rotate your element 30 degree then you should apply this css property to element; transform: rotate3d(1, 2, 3, 30deg);.

    I’ve created this little app to demonstrate how rotate3d works.

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

Sidebar

Related Questions

Here is my scenario. User fills out this large page which is dynamically created
I had created one HTML page for my experiance. In this i had use
I created a new content type for a wiki page library. I added this
I created a new ASP.NET MVC application. The home page looks like this: I
I'm trying to create a page by using view 2. This page list all
This may be a inappropriate question for SO, but I thought lets see :)
I have created a login page at www.mywebsite.com/members/login I'm using Zend Framework, Now I
After my previous question I heve this one, that might be better. I need
So I had to create this splash page in a very short amount of
On this page http://equals.lsri.nottingham.ac.uk/puzzle/create , if you type something into an input and 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.