JayHoltslander / Sketch-Make-Long-Shadow

A plugin for Sketch to create long shadows of a user defined length from a shape.
MIT License
90 stars 14 forks source link

Still doesn't work Sketch 49.3 #9

Open nickf352 opened 6 years ago

nickf352 commented 6 years ago

A Google search resulted in me coming to this Github page to be met with an unsupported plugin that has ceased working.

blakeperdue commented 6 years ago

Anyone have a replacement or a way to fix this in latest sketch?

skipjack commented 4 years ago

Anyone have a replacement or a way to fix this in latest sketch?

Not a great one, but here's one approach that's similar to the CSS hack used to achieve this effect:

image

I think someone more familiar with writing Sketch plugins than I am could easily write something to automatically generate all the shadows (which you could then turn into a style). There is a downside to this approach in that opacity won't work so you must explicitly choose the shadow's color.

The other approach (and maybe better) is to simply create a new shape as shown in these articles:

I think the latter approach is what this plugin did automatically.

skipjack commented 4 years ago

There is a downside to this approach in that opacity won't work so you must explicitly choose the shadow's color.

Opacity actually does work if you wrap the shadow layer in a group and change the group's opacity. Took a little more fiddling around to get this to work. The annoying part is creating all the shadow's by hand initially (though once you do that you can make it layer style and reuse it everywhere).