Command Palette
Search for a command to run...
Loading component...
Apple squicircle effect
use the famous apple squicircle effect on any element, make them feel more than just rounded corners with just one line of code and no extra dependencies
Dependencies
Interaction Type
Try toggling filter on off in the options | |
Try adjusting the values just little | |
Observe the main div with effect |
CLI UNAVAILABLE
pro component, try copying the source code from top right corner
Setup Layout or parent component
// layout.tsx or component parent just need to use the div outside the element import { SquiCircleFilterStatic, SquiCircleFilter, } from "@/components/v1/skiper63"; const Layout = ({ children }) => { return ( <div> <SquiCircleFilter blurValue={10} colorMatrixValue={20} alphaValue={-7} /> {children} </div> ); };
Props | Description |
---|---|
blur | Blur value 10 is good |
matrix | Matrix value 20 is good |
alpha | Alpha value -7 is good |
important
- Don't mess with the props values alot it can mess up the whole div so try to just use the light variations and see magic
- use the same id on the filter as mentioned in the SquiCircleFilter or if you use the SquiCircleFilterStatic
How to apply squicircle effect
// whatever element has this filter set will have the squicircle effect const MyComponent = () => { return ( <div style={{ filter: "url(#SquiCircleFilter)" }}>Your content here</div> ); };
Thats it now the element with this filter will have the coooooool apple's squicircle effect.
also if you want things to be simpler
// layout.tsx or component parent just need to use the div outside the element import { SquiCircleFilterStatic } from "@/components/v1/skiper63"; const Layout = ({ children }) => { return ( <div> <SquiCircleFilterStatic /> {children} </div> ); };
// whatever element has this filter set will have the squicircle effect const MyComponent = () => { return ( <div style={{ filter: "url(#SkiperSquiCircleFilterLayout)" }}> Your content here </div> ); };
Source code
Click on the top right to view the source code
Keep in mind
Most components here are recreations of the best out there. I don't claim to be the original creator. This is my attempt to reverse-engineer, replicate, and often add a few extra features. I've tried to credit everyone, but if I missed something, let me know.
Contact
Additionlly, if you find any bug or issue, feel free toDrop a dm.
License & Usage:
- Free to use and modify in both personal and commercial projects.
- Attribution to Skiper UI is required when using the free version.
- No attribution required with Skiper UI Pro.