v1.2.0
π₯ Release preview
Retro-compatible release that adds support for triggering the glitch effect only when hovering the image, serving the library iife bundle through unpkg, improves the playground, and more βΊ
π Features
- Introduced a new
playMode
option to choose when to play the defined glitch animation:always
(default): Always be glitchin'.hover-triggered
: Start glitching hovering the image for the first time.hover-only
: Only glitch when hovering the image.
- The library is now served by unpkg.com.
- A
Show code
section in the playground lets you copy/paste the options object to use it in your code directly.
π€ Changes
- Updated documentation to reflect the new changes (and fix a misleading example).
- Updated the playground with new
recommended defaults
buttons to check out good-looking effects for the 3 play modes.
π» Code quality
- Switch case indent rule customized to force inner indentation.
π Bug fixes
- Remove original image instead of hidding it (in some cases, the image would not be hidden because of conflicting CSS rules).
π₯ Thanks
- @Code-Victor for suggesting the feature (#4)