Jump to content
Search Community

floop

Members
  • Posts

    2
  • Joined

  • Last visited

floop's Achievements

  1. Hello everyone! So my goal is so animate a logo rolling in from the right side of the view to the center on page load. Ive got the math for doing this by finding the circumference of the image on load and then calculating how many rolls that circumference should take to get across 50vw. Often times, as you can see in the attached codepen, the degrees it needs to rotate are not divisible by 360 and so in turn it leaves the image not oriented properly. I can calculate the degrees offset that it needs to start from, but when i try to animate from there, for lack of better words, it skips all the rotations and instead takes the shortest path between the two degrees. In the codepen i have a line for my attempt to animate from the start degree, and a line without that so you can see both. Thank you very much to anyone who can help.
×
×
  • Create New...