To make this work:
- you can use Optifine as always
or
- on Fabric you need to install Entity Model Features
(and Entity Texture Features as a dependency)
...and put this pack into the resourcepacks folder
With this resourcepack spiders have natural looking legs.