Jump to content
Search Community

mitchellcliftonbarton

Members
  • Posts

    2
  • Joined

  • Last visited

mitchellcliftonbarton's Achievements

  1. I built this little slider based off of the codepen below, and have added a few tweaks. https://codepen.io/osublake/pen/ZOgGXB The slider starts automatically, and then on mouseenter/mouseleave the animations pauses or plays. Once paused, you can drag through the carousel as you please, until you mouseleave again at which point the slider will resume playing from where you left off. The only problem I am running into is figuring out the actual progress value once I start dragging. I figured I would have to grab the current progress, and then add the dragging progress to it, but this results in some crazy dragging stuff. Any ideas on how I can seamlessly maintain the correct progress value between the autoplay and the dragging?
×
×
  • Create New...