Results 1 to 3 of 3

Thread: Skyscraper Parallax - Drag Animation

  1. #1
    Axure Employee
    Join Date
    Jul 2011
    Location
    San Diego, CA
    Posts
    1,258
    Thanks
    198
    Thanked 207 Times in 156 Posts


    My Twitter

    Cool Skyscraper Parallax - Drag Animation

    This example uses the DragX and DragY variables to create a parallax effect. I hope you like it.

    The interactions take place on the DragBall, a dynamic panel which contains the following events to move other dynamic panels.

    OnDrag
    Move DragBall with drag

    OnMove
    Move *DynamicPanel* by...
    X: [[DragX / 5]]
    Y: [[DragY / 5]]

    The smaller number the drag variable is divided by, the greater the effect (more it moves). With this said, it would make sense that the objects you want to appear closer to you divide by a small number. The farther away objects have a bigger number.

    Jakub of Axure Czech Users created this interaction, I took the concept and applied it to the skyscraper design.

    See it Live

    Attached Files Attached Files
    Last edited by Paul; 04-04-2012 at 09:41 AM.

  2. #2
    Apprentice Level
    Join Date
    Mar 2012
    Location
    Guangzhou, China
    Posts
    10
    Thanks
    0
    Thanked 2 Times in 1 Post


    A little confusion about the axure dragx function. With the drag continuing, the movable dynamic panel will hardly return to its original place.

  3. #3
    Axure Employee
    Join Date
    Jul 2011
    Location
    San Diego, CA
    Posts
    1,258
    Thanks
    198
    Thanked 207 Times in 156 Posts


    My Twitter
    If you wanted to return everything to their original place you could add an OnDragDrop to which moves the dynamic panels to the X,Y before drag.

Similar Threads

  1. Default animation speeds
    By tims in forum General Discussion
    Replies: 6
    Last Post: 02-14-2013, 02:00 PM
  2. Zoom by Dragging (drag x and drag Y functionality) Example
    By zinkzone in forum Tips, Tricks, and Examples
    Replies: 6
    Last Post: 04-01-2012, 09:55 PM
  3. Replies: 3
    Last Post: 11-11-2011, 03:31 AM
  4. GIF animation
    By pixeler in forum General Discussion
    Replies: 1
    Last Post: 03-24-2011, 08:15 PM
  5. How to simulate an animation
    By nhoh in forum General Discussion
    Replies: 1
    Last Post: 10-21-2008, 09:57 AM

Search Engine Friendly URLs by vBSEO 3.6.0 PL2