Closed francoischalifour closed 4 years ago
This makes sure that the opening/closing transitions are triggered even though an image CSS transition is provided as inline style.
transition
This is problematic with frameworks that generate inline styles on their images (e.g. Gatsby).
Closes #110.
The CSS transition is marked as "!important" for the animation to happen even though it's overridden by another inline transition style attribute.
Description
This makes sure that the opening/closing transitions are triggered even though an image CSS
transition
is provided as inline style.This is problematic with frameworks that generate inline styles on their images (e.g. Gatsby).
Closes #110.
Solution
The CSS
transition
is marked as "!important" for the animation to happen even though it's overridden by another inlinetransition
style attribute.