I’m having some trouble with the tabs horizontal navigation on the mobile version of my ‘Store’ Page.
I would like to have a small gradient on the right handside sticking to the edge of the screen parttially hiding the last visible tab and indicating to the user that there are more tabs in that direction. Very similar to what google search has in their horizontal tabs menu. ( see attached )
You can put the tabs element in a div, make this div relative positioned then add another div inside this div which will act as a gradient, position this div absolute and tweak to have it the way you want. make sure its above your tabs by changing its z value and now this gradient div will stay there as the tabs behind it get swiped.
You could do this by putting your tabs in another div block (with position set to relative) and then add another div block inside after your tabs. Set this new div block to absolute and set a small width (say 20px) and make the height the same as the tabs (~30px). Then set the background of this new small div block to a background colour gradient 90degrees (so it’s horizontal).
Set the initial colour to #e8e5db with 0 opacity and the final colour to #e8e5db 100% opacity.
You might want to play around with the right margin on your tabs so it has the illusion of disappearing when you scroll to the last tab.
Looks like Akarshan beat me to it… it sounds like a similar solution.
I tried this as well but when I create the 90 degree gradient and set one end to transparent and the other one to an opaque colour, what should be the transparent end of the gradient still shows up as a kind of low opacity black and I cannot firugre out how tto change it
Thannk you…that did the trick! However I still can’t get rid of that weird shadow where the gradient shoulld actually be fading tto completely transparent. The value on the leftt side is #000000 yet it is still gray. Do you have any idea why that is? I’m attachiing a screenshot.