Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animate border-radius in % rather than pixels #165

Open
lukeHT opened this issue Nov 9, 2021 · 0 comments
Open

Animate border-radius in % rather than pixels #165

lukeHT opened this issue Nov 9, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@lukeHT
Copy link

lukeHT commented Nov 9, 2021

lax.js version
2.0.3

Describe the bug
I'd like to use % for 'border-radius' value, but each time I try to do something with that it crashes. I tried to use both cssUnit and cssFn, but with no luck. There's no error, no anything, just the code is not applied.

Code

"border-radius": [
    [0, "screenHeight"],
    [50, 0],
    {
        easing: 'easeInOutQuint',
        cssUnit: '%',
    }
]
"border-radius": [
    [0, "screenHeight"],
    [50, 0],
    {
        easing: 'easeInOutQuint',
        cssFn: (val) => {
            return `${val}%`;
        }
    }
]
@lukeHT lukeHT added the bug Something isn't working label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant