Skip to content

Instantly share code, notes, and snippets.

View aPinix's full-sized avatar
🎸
Awesome!

André Pinto aPinix

🎸
Awesome!
View GitHub Profile
@aPinix
aPinix / svg-rounded-rectangle-path.js
Last active April 16, 2024 21:22
Create a rounded rectangle (different radius for each corner)
createSvgRectWithBorderRadius('.wrapper', '#09f', 0, 0, 400, 300, 40, 70, 20, 110);
/**
* Create a rounded rectangle (different radius for each corner)
* @author aPinix <https://twitter.com/aPinix>
* @version 1.0
* @see {@link https://codepen.io/aPinix/pen/dyRvjQq}
* @link https://codepen.io/aPinix/pen/dyRvjQq
* @param {string} elemSelector The selector for the element to append the svg
* @param {string} color The color of the rectangle
@aPinix
aPinix / svg-rounded-brackets-path.js
Last active August 25, 2022 00:50
Create svg rounded brackets
createSvgBracketWithBorderRadius('.wrapper', '#09f', 0, 0, 30, 100, 10, 8, 'left');
createSvgBracketWithBorderRadius('.wrapper', '#09f', 0, 0, 30, 100, 10, 8, 'right');
/**
* Create svg rounded brackets
* @author aPinix <https://twitter.com/aPinix>
* @version 1.0
* @see {@link https://codepen.io/aPinix/pen/dyRvjQq}
* @link https://codepen.io/aPinix/pen/dyRvjQq
* @param {string} elemSelector The selector for the element to append the svg