Usage

Add CSS classes to your layers or pre-compositions.

You can add multiple classes: .inner-shadow.noclick :

image.png

You can target specific fill, strokes, …

image.png

Included classes

.overflow


.click

image.png


.noclick

<!-- a lottie structure -->
<svg>
	<path class="top noclick"></path>
	<path class="bottom"></path>
<svg>
// won't trigger
getElem(".top").onclick = function() {
	console.log("top") 
}

// will trigger, even if below top layer
getElem(".bottom").onclick = function() {
	console.log("bottom") 
}

.noscale

CleanShot 2024-09-27 at 19.26.59.gif

/* adjust the stroke-width if needed */
[path] {
	stroke-width: 1px;
}

.hitbox