PavelLaptev / css-houdini-squircle

A tiny CSS Houdini module that allows to add a squircle shape to HTML elements
https://pavellaptev.github.io/squircle-houdini-css/
MIT License
356 stars 13 forks source link

Default to `--squircle-smooth: 1` #3

Closed wooorm closed 2 years ago

wooorm commented 2 years ago

Only adding mask: paint(squircle) gives a quite interesting result, but perhaps not what folks expect for squircles:

Screen Shot 2021-11-02 at 09 28 48

Defaulting --squircle-smooth: 1 though, looks more like what I’d expect:

Screen Shot 2021-11-02 at 09 29 49
wooorm commented 2 years ago

This seems to be documented as defaulting to 1, but I’m not seeing that? 🤔

PavelLaptev commented 2 years ago

@wooorm good idea. I'll check it

wooorm commented 2 years ago

Sweet!

My guess is that:

PavelLaptev commented 2 years ago

Updated https://www.unpkg.com/browse/css-houdini-squircle@0.2.0/squircle.min.js