Skip to content

v1.2.0

Compare
Choose a tag to compare
@7PH 7PH released this 01 Sep 22:26
· 55 commits to master since this release

πŸ”₯ 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