sidebar popup

Oct 25, 2014 17:20

I have seen it done (maybe it was on a smooth sailing layout) but I would like a sidebar that is hidden and pops up when you hover over it. Or one that extends.

Can this be done?

EDIT: Yes I did sort of but can it also go smooth and not like in the live preview incheons. And can it be hidden?

sidebar, stylesheet

Leave a comment

Comments 3

fueschgast October 26 2014, 00:31:29 UTC
In #sidebar change the width to 400px and add
position: absolute;
left: -390px;

In #sidebar:hover take the width out and put in left: 0px;

Okay, I'll look at the animation now.

Reply


fueschgast October 26 2014, 00:40:56 UTC
Transition, I should have said. Take out #sidebar.easein and #sidebar.easeout and add the following to #sidebar:

-webkit-transition-property: left;
-webkit-transition-duration: 2s;
transition-property: left;
transition-duration: 2s;

Thank you, you made me finally look up how transition works! :oD

Reply

unreal October 26 2014, 10:23:10 UTC
Thank you for the help.

Reply


Leave a comment

Up