You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've put this together a couple of times before for other personal projects, but it would be nice to have access to the different easing function that have been added as custom properties.
To mitigate the added CSS the [data-sal][data-sal-easing] selectors can be updated to use the custom properties. Starting at ~1.1kb gzipped, only adding the custom properties (--sal-in-out) brings the gzip size up to 1.42kb. Adding the custom props to the[data-sal][data-sal-easing] selectors lowers that size to 1.275kb.
If this is something that is interesting, I can make a PR, or hash out some ways to reduce the size increase some how.
The text was updated successfully, but these errors were encountered:
gingerchew
changed the title
Feature Request: Add easing functions to --sal-easing-* custom properties
Feature Request: Add easing functions to sal-* custom properties
Jul 27, 2022
I've put this together a couple of times before for other personal projects, but it would be nice to have access to the different easing function that have been added as custom properties.
This is the SASS I coded up most recently:
Which outputs this CSS:
It doesn't have the name spacing
--sal-easing
convention, but that can be added using this@each
loop instead.To mitigate the added CSS the
[data-sal][data-sal-easing]
selectors can be updated to use the custom properties. Starting at ~1.1kb gzipped, only adding the custom properties (--sal-in-out
) brings the gzip size up to 1.42kb. Adding the custom props to the[data-sal][data-sal-easing]
selectors lowers that size to 1.275kb.If this is something that is interesting, I can make a PR, or hash out some ways to reduce the size increase some how.
The text was updated successfully, but these errors were encountered: