📹 Video
- Create a div with a class of box.
- Establish styles for the .box class.
- Add two new classes .hover and .down and styles for both.
- Add an eventListener on the box and use 🤔TweenMax.to() to adjust the className of the box.
- Make sure to add the additional classes. If you replace the class you won't be adding styles to the box, but replacing them.
TweenMax.to(box, .25, { className: '+=hover' })
- Make sure to use opposite addEventListeners to remove the classNames.
- "mouseenter" adds, "mouseout" removes
- "mousedown" adds, "mouseup" removes