rmbarber Posted October 15, 2019 Share Posted October 15, 2019 I desire to rotate a triangle to the right as fast as it can . HELP ! Link to comment Share on other sites More sharing options...
Funce Posted October 15, 2019 Share Posted October 15, 2019 Click the triangle to start the spinning! (In this example) Rotation going... right?? Do you mean clockwise? Well uh, have at it then <style> @keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(359deg); } } #triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red; animation: rotation 0.5s infinite linear; } </style> <div id="triangle-up"></div> Link to comment Share on other sites More sharing options...
rmbarber Posted October 16, 2019 Author Share Posted October 16, 2019 The purpose of this is to make it look like javascript did it. triangle goes clockwise. Thank You! Link to comment Share on other sites More sharing options...
rmbarber Posted October 16, 2019 Author Share Posted October 16, 2019 I desire to have the triangle rotate on the Y axis. Link to comment Share on other sites More sharing options...
rmbarber Posted October 16, 2019 Author Share Posted October 16, 2019 18 hours ago, Funce said: 18 hours ago, Funce said: <style> @keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(359deg); } } #triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red; animation: rotation 0.5s infinite linear; } </style> <div id="triangle-up"></div> Link to comment Share on other sites More sharing options...
rmbarber Posted October 16, 2019 Author Share Posted October 16, 2019 ah ha rotateY Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now