Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. $('.list_title').click( function() {
  2. $('.list_content').slideToggle()
  3. $('.listBgArr').addClass('uppArrow');
  4. });
  5.  
  6. .usefull-links:hover{cursor: pointer;}
  7. .usefull-links{position: relative;background-color: #5dcef9;padding: 5px 10px;border-radius: 5px;}
  8. i.flaticon-down-arrow{position: absolute;right: 15px;bottom: 0px;}
  9. .links{display: none;position: absolute;}
  10. .links a{display: block;}
  11. .info-div{position: relative;padding-top: 20px;}
  12. .info-div i{transition: ease all 0.5s;}
  13. .info-div .active i{transform: rotate(180deg);}
  14.  
  15. <div class="col-lg-4 info-div">
  16. <div class="usefull-links">Usefull links<i class="flaticon-down-arrow"></i></div>
  17. <div class="links">
  18. <a href="https://jquery.com/download/" target="_blank">Get jQuery</a>
  19. <a href="https://getbootstrap.com/docs/3.3/getting-started/" target="_blank">Get bootstrap</a>
  20. </div>
  21. </div>
  22.  
  23. $('.usefull-links').bind('click', function(){
  24. $(this).toggleClass('active');
  25. $('.links').slideToggle();
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement