is this stealable?
- Started
- Last post
- 10 Responses
- hans_glib
an intentionally provocative headline to a serious questine.
i found this animated pendant on a fancy jewellery site
https://www.loquetlondon.com/des…
I'm trying to find out how the animation has been done, but i'm no code expert and i can't find the code that's powering it, despite digging around with the developer tools in chrome.
could one of you experts have a look and tell me if it's proprietary (it seems to be based on yui which is open source but i'm not sure). if it is open source could you point me in a direction to grab the code that's making this happen. I don't need all the drag and drop gizmodery - I only want the mechanism that animates the pendant- all images will be replaced.
Cheers
- detritus0
It's in the second from last JS include in the first block..
https://www.loquetlondon.com/med…
search for CHARM_MASS, und er the YUI box2D variable.
In short, yes, it's stealable, but if it were me I'd probably try and replicate this with some other sort of code instead.
- detritus0
This is what runs it, but the project page seems... broken.
- ideaist0
I'd suggest instead of making it interactive, just do a simple float using jqFloat.js.
- detritus0
How about something like this?
http://brm.io/matter-js-demo/#ch…
(I just searched Google for 'javascript 2d basic physics')
- uan0
- uan0
can build it from box2d.js:
https://github.com/kripken/box2d…
http://www.iforce2d.net/embox2d/…
the ropeJoint example
http://www.iforce2d.net/embox2d/…
- detritus0
Somewhere out there, hans_glib is swearing into the void.
- hans_glib0
thanks all - will trawl thru this and review. radio silence due to bbq and summer drinking.
- sem0
^ Everyone went all out to help, aint that nice :)