Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?



Apple slider


2 replies to this topic - - - - -

#1 Guth

    Alba Gu BrĂ¡th

  • 788 posts
  • Joined: 30-December 05
  • Location: Scotland
  • OS: Windows 8 Pro
  • Phone: iPhone 5

Posted 08 January 2013 - 01:16

I just stumbled accross the apple page for the iPad case and they have this cool animation where you click and drag and the case rolls off and under the iPad.

Looking at the source, each frame of the animation is a different picture.

How have they done this? Its very cool and backward compatible.

edIt:
Forgot link :laugh: http://www.apple.com/ipad/accessories/


#2 nik louch

    ..:::..:::..:::..

  • 31,376 posts
  • Joined: 14-January 03
  • Location: Leicester, UK
  • OS: Windows 7, OSX, Android, Ubuntu
  • Phone: Galaxy Note II

Posted 08 January 2013 - 01:36

Hmmmm...

On drag, get left co-ord of mouse from left of container.

Say this goes from 0 to 150, have 150 images in a strip. Set the offset vertically to the value of the co-ord?

Edit: I see they are doing it with individual images. So load image + "x value" + .jpg

#3 Cute James

    Resident Fanatic

  • 768 posts
  • Joined: 14-June 11
  • Location: Hamamatsu, Japan

Posted 08 January 2013 - 01:50

I thought they were perhaps using separate PNGs for the cover and iPad in order to achieve transparency, so was wondering about the network overhead/filesize for each frame.

However, now I realise that JPEGs are being used, allowing the faster load time.

Quite a cool effect, although wouldn't a sprite file have been a better choice instead of individual frames?