Skip to content

Instantly share code, notes, and snippets.

@greystate
Created September 9, 2024 08:16
Show Gist options
  • Save greystate/a44f4d43ea43248f75c45131c6c8c413 to your computer and use it in GitHub Desktop.
Save greystate/a44f4d43ea43248f75c45131c6c8c413 to your computer and use it in GitHub Desktop.
Testing @Property for animating an angle value
/**
* Testing @property for animating an angle value
*/
@property --angle {
syntax: "<angle>";
inherits: false;
initial-value: 45deg;
}
:root {
--angle: 16deg;
background: #f06;
background: linear-gradient(var(--angle, 45deg), #f06, yellow);
min-height: 100%;
transition: --angle 1s linear;
&:hover {
--angle: 120deg;
}
<!-- content to be placed inside <body>…</body> -->
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment