Jump to content
Search Community

Rotate after Drag

SteveZ test
Moderator Tag

Recommended Posts


I’m creating an interactive alphabet for my grandson. The letters (.png images) are scrambled on the stage. Their initial positions and rotations are set in CSS. When I create a simple Draggable each image drags fine; however, either during or after an initial drag I would like the letters to rotate to 0 degree (upright), and I would like that upright position to remain even if a letter is dragged repeatedly. Thanks!

See the Pen WNgQpKq by SteveZ (@SteveZ) on CodePen

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...