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

Dynamic values for corners to respect the same ratio #2

Open
giacomoalonzi opened this issue Apr 18, 2023 · 1 comment
Open

Dynamic values for corners to respect the same ratio #2

giacomoalonzi opened this issue Apr 18, 2023 · 1 comment

Comments

@giacomoalonzi
Copy link

Hello, thank you for this wonderful tool. I wanted to know if there is a way to have dynamic angles relative to the width of an element. For example, I have elements with the same height but dynamic width, and I would like to always maintain the same angle ratio. Can you help me with this? Thank you.

@giacomoalonzi giacomoalonzi changed the title Dynamic value Dynamic values for corners to respect the same ratio Apr 18, 2023
@DJanoskova
Copy link
Owner

Hi @giacomoalonzi !

What's this width based on? If it's maybe calculated based on the decide width, then that's how you could compute the property and pass it as a value for the SmoothCorners component?

I think if you posted a codepen example we could brainstorm something 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants