Skip to content

tzachbon/css-runtime-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

CSS Runtime Functions

See examples!

Made with CSS Houdini. This is my experiment with CSS Houdini and the paint API.

Make sure your browser supports houdini here

CSS Properties cannot be changed dynamically and it is a bummer. Therefore a lot of people go to build-time variables and formatters with CSS preprocessor which is the most convenient solution at the moment.

I created here a nice example for a "runtime" formatter (or function if you like) that can change your runtime property dynamically. The only problem is that the solution right now is using the paint API and it could only be used on properties like "background-image" or its shorthands.

I would really love it if something like this could exist and make our lives more simple.

Read more

Let's talk

Got any questions or just wanna chat? Feel free to open an issue here or hit me up on Linkedin or Twitter

About

Creating CSS Runtime Functions with CSS Houdini

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published