News for hackers. Stuff that matters.
Re:2KB JavaScript animation library by ricardobeat on Sunday December 03, 2017 @02:39PM (#15839080)
None of the examples work in Safari/iOS, despite it self advertising as "well suitable for the mobile web".
Re:2KB JavaScript animation library by migueloller on Sunday December 03, 2017 @04:21PM (#15839663)
It might be because it requires transpilation [1].

[1] https://github.com/bendc/animateplus#browser-support

Re:2KB JavaScript animation library by Can_Not on Sunday December 03, 2017 @11:27PM (#15841435)
I wonder what size it will be after transpile?
Re:2KB JavaScript animation library by jedisct1 on Sunday December 03, 2017 @04:07PM (#15839602)
Nothing works on Firefox/macOS either.
Re:2KB JavaScript animation library by jwr on Sunday December 03, 2017 @03:34PM (#15839422)
Doesn't work in Safari on MacOS, either. Oh, well.
Re:2KB JavaScript animation library by rglover on Sunday December 03, 2017 @02:07PM (#15838927)
For those not in the know, this was posted/created by Benjamin De Cock who is responsible for many of Stripe's marketing site animations. Cool to see this here :)
Re:2KB JavaScript animation library by lostgame on Sunday December 03, 2017 @05:06PM (#15839903)
Might’ve considered transpiling first so it doesn’t give the illusion of being horribly broken. :3
Re:2KB JavaScript animation library by jazoom on Sunday December 03, 2017 @02:51PM (#15839168)
Straightforward documentation. Nice API. Small size. Good performance. I think I might use this. Thanks!
Re:2KB JavaScript animation library by CodeWriter23 on Sunday December 03, 2017 @03:45PM (#15839490)
You might want to try the demos in Safari on iOS and macOS first.
Re:2KB JavaScript animation library by jazoom on Sunday December 03, 2017 @03:57PM (#15839548)
I use a transpiler. It'll be fine.
Re:2KB JavaScript animation library by spython on Sunday December 03, 2017 @11:30AM (#15838235)
Not working on Firefox Nightly.
Re:2KB JavaScript animation library by benjamindc on Sunday December 03, 2017 @11:48AM (#15838319)
Re:2KB JavaScript animation library by ryannevius on Sunday December 03, 2017 @12:39PM (#15838529)
While I understand the argument for keeping the library "untranspiled," you may want to reconsider using this version in the examples. Ideally, examples should work in the average browser. JMHO.
Re:2KB JavaScript animation library by sebazzz on Sunday December 03, 2017 @02:36PM (#15839066)
I agree. I use Edge, and the only thing I see is a white page. That gives me a bad impression and I'm already not interested anymore.
Re:2KB JavaScript animation library by tcd on Sunday December 03, 2017 @04:54PM (#15839833)
> I agree. I use Edge,

I think I found the problem. Check caniuse.com for Edge's webplatform score.

Edge: 236

Chrome: 304

Firefox: 298

Yup. You're going to have a bad time with that.

P.S: this should work with Edge16 (requires latest version of Windows 10; 1709)

Re:2KB JavaScript animation library by sebazzz on Wednesday December 06, 2017 @04:42PM (#15865282)
I am on Win10/1709 and it really does not work.
Re:2KB JavaScript animation library by dclowd9901 on Sunday December 03, 2017 @01:29PM (#15838746)
Not working on iOS safari 11.1.2
Re:2KB JavaScript animation library by JepZ on Sunday December 03, 2017 @03:19PM (#15839332)
Last time I used a JS animation library, I used velocity.js

While the performance was good, the main reason I would not use it again, is because the browser dev-tools do not work with velocity.js.

Does anybody know if you can use e.g. the chrome dev-tools animation tab with this library?

Re:2KB JavaScript animation library by simonlc on Sunday December 03, 2017 @03:47PM (#15839505)
The reason it doesn't work is because the animations are JS based, the chrome tool is for CSS animations. I believe velocity has it's own tools for editing animations, though I've not tried them myself.
Re:2KB JavaScript animation library by Introvertuous on Sunday December 03, 2017 @11:18AM (#15838181)
Out of curisoity, what would your library provide over the web animations api.
Re:2KB JavaScript animation library by benjamindc on Sunday December 03, 2017 @11:52AM (#15838340)
Spring physics, frame-based callbacks (see the `change()` examples), functions as values for duration, delay and any property you animate, making staggered animations easy to create, etc.
Re:2KB JavaScript animation library by jonahx on Sunday December 03, 2017 @11:59AM (#15838370)
Nice. I'd be interested in that and love small footprint libraries. Do you have a comparison with http://velocityjs.org/ or other popular alternatives?
Re:2KB JavaScript animation library by benjamindc on Sunday December 03, 2017 @12:06PM (#15838394)
In terms of performance, it outperforms all the animation libraries I’ve tried ( you can compare the stress test linked at the bottom of the page with this version made with GreenSock: http://animateplus.com/examples/stress-test/gsap/ ). In terms of weight and parse time, it’s also the fastest afaict. That being said, it’s not as powerful as GreenSock for example as it mainly focuses on performance and simplicity.
Re:2KB JavaScript animation library by codingdave on Sunday December 03, 2017 @03:16PM (#15839308)
I just did -- your stress test kept my CPU and GPU at 20-25. GSAP's kept them at 13-15.

EDIT: More testing -- When I shut down all other tabs, yours dropped down to a bit lower than GSAP. But I find that a bit odd/concerning that it only performs better when it is the only thing running.

Re:2KB JavaScript animation library by pharrington on Sunday December 03, 2017 @01:53PM (#15838865)
A pedantic note - your library provides sinusoidal easing, not spring physics.
Re:2KB JavaScript animation library by bitL on Sunday December 03, 2017 @01:29PM (#15838744)
Where do you use spring physics? Is it just for translations, or do you actually deform objects using mass-spring networks?
Re:2KB JavaScript animation library by blumomo on Sunday December 03, 2017 @11:53AM (#15838342)
Examples in readme not working on latest iOS
Re:2KB JavaScript animation library by benjamindc on Sunday December 03, 2017 @11:56AM (#15838356)
All the examples use the untranspiled version which is comptabile with the browsers listed here: https://github.com/bendc/animateplus#browser-support
Re:2KB JavaScript animation library by simlevesque on Sunday December 03, 2017 @01:38PM (#15838789)
Nothing works on android 7, latest Chrome.
Re:2KB JavaScript animation library by petee on Sunday December 03, 2017 @02:48PM (#15839149)
Works in Chrome on Android 8.0, but not in Opera (...which is also basically chrome)
Re:2KB JavaScript animation library by chvid on Sunday December 03, 2017 @02:59PM (#15839207)
Does not work in Safari (desktop).
Re:2KB JavaScript animation library by chvid on Sunday December 03, 2017 @03:03PM (#15839228)
Probably because you use the ... spread syntax which is not widely implemented.