Jump to content
Search Community

andufo

Members
  • Posts

    3
  • Joined

  • Last visited

andufo's Achievements

0

Reputation

  1. Yes, thanks again! I just replicated your code on my dev environment, it's working great
  2. Hi! Yes, it helps a lot. Now I can easily set a data- attribute to get a specific name for the selected color in the luckywheel. Thanks! That covers both of my questions perfectly.
  3. Hello! I'm new here, just started using GSAP. I'm trying to build a luckywheel for a promo, which gives the visitor up to 3 opportunities to spin the wheel. I already have covered the first spin, but I still have 2 specific questions: The second/third time I spin the luckywheel, it feels different (slower, clumsier maybe?). Is there a way to rewind the object to the original position and then animated it but using a different rotation value? In my example, how can I know on which color the luckywheel lands on? I know there will be always 12 possible results, each one using 30 degrees out of the total 360 degrees available in a circle, but how do I know precisely in which color it lands? I've attached CodePen link and my current working code. Thanks for any ideas!
×
×
  • Create New...