solidjs-community / solid-examples

A set of useful examples that demonstrate Solid use cases.
MIT License
27 stars 3 forks source link

Example/lightbulb #3

Closed AceMouty closed 2 years ago

AceMouty commented 2 years ago

A demo using a Signal and Show component to conditionally render elements to the UI.

Features:

lightbulb-result

mosheduminer commented 2 years ago

I'm ready to merge this, I'm just wondering why the light bulb moves when it's clicked? I suppose the image dimensions are slightly different?

AceMouty commented 2 years ago

Correct, image dimensions are slightly different. I had a image that has the light both on & off and just cropped it into 2 different frames 😅