0

I have been developing an application in work and want to add some functionality to my Home Page where the user selects what service they want to go into.

At the moment I have 4 services they can click on, but in the future their could be hundreds.

I am trying to find out what functionality I can use to achieve the effect I want on this page and I don't know anything about it so I have drew a picture trying to explain.

My Application Screen Now

enter image description here

What I want to happen

enter image description here

Sorry if its hard to understand I just don't know any of the functionality needed or name of the function

Mr_Green
  • 40,727
  • 45
  • 159
  • 271
user3091919
  • 215
  • 4
  • 14

4 Answers4

0

You can use image sliders. For example

http://www.jssor.com/demos/scrolling-logo-thumbnail-slider.html

There are many more. Please google it. Thanks

Biswas
  • 598
  • 2
  • 16
  • 34
0

google it, there are a lots of way for do this eg.

Michael
  • 425
  • 3
  • 13
0

You want to use the "mousewheel" event, which is not supported by every browser.

Try first a script that detects the event. Then work on the animation (with recursive setTimeout etc).

Edit : if you need an infinite scrolling menu (last icon followed by first icon, and conversely), create an array of objects, with every object having the icon and the url as properties. The function should show the following and preceding element, and go back at the end (or the beginning) when reaching an extremity of the array (use "if, else if"). You can then animate it with css or jQuery.

BEAGM
  • 106
  • 1
  • 4
0

Yes, It is possible by following these steps:-

  1. creating a global variable window.service = 0 (represent the current state of page) and attaching a scroll event.

  2. You can use this answer (How can I determine the direction of a jQuery scroll event?) for attaching up and down event to move left and right to the service respectively.

  3. Every time you move up window.service -= 1 and every time you move down window.service += 1. Use boundary condition to check it does not go over the limit.

  4. Now, you have 5 conditions( window.service belongs to [1,5]). Use these condition to show 5 different css conditions which will be representing 5 different scenario that you are trying to obtain.

or Use any of the plugins suggested above.

Community
  • 1
  • 1
Gaurav Kalyan
  • 1,897
  • 2
  • 14
  • 21