Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. .drawer-items{width: auto !important;}
  2. .drawer-items ul {
  3. margin: 0px;
  4. padding: 0px;
  5. }
  6. .drawer-items li {
  7. float: none !important;
  8. list-style: none;
  9. margin-left: 0px;
  10. width: 200px;
  11. display: table-cell !important;
  12. }
  13.  
  14. function MoverLista(derecha){
  15. var ul = $('.drawer-items>ul');
  16. //para la derecha
  17. if(derecha)
  18. ul.children('li:first-child').appendTo(ul);
  19. else
  20. ul.children('li:last-child').prependTo(ul);
  21. //para la izquierda
  22. }
  23.  
  24. <div class="drawer-content">
  25. <div class="drawer-navigation">
  26. <a class="drawer-left" href="javascript:MoverLista(false)">Izquierda</a>
  27. <a class="drawer-right"href="javascript:MoverLista(true)">Derecha</a>
  28. </div>
  29. <div class="drawer-items">
  30. <ul>...
  31.  
  32. .drawer-navigation{
  33. width: 100%;
  34. position: relative;
  35. }
  36. .drawer-navigation a{
  37. position:absolute;
  38. top:0px;
  39. height: 140px;
  40. width:100px;
  41. display: block;
  42. color:orange;
  43. background: rgba(0,0,0,0.3)
  44. }
  45. .drawer-navigation a:hover{
  46. background: orange;
  47. color:black;
  48. }
  49. .drawer-navigation a.drawer-left{
  50. left:0px;
  51. }
  52. .drawer-navigation a.drawer-right{
  53. right:0px !important;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement