Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $(document).ready(function(){
  2.  
  3. $(this).click(function(event){
  4. var myTarget = event.target;
  5. if (myTarget.is('.pic') {
  6. $(myTarget).animate({
  7. width: "75%"
  8. }, 650 );
  9. }
  10.  
  11. });
  12.  
  13. <div class=myImages id=group001>
  14. <img class=pic id=img001 src="../images/img001.jpg">
  15. <div class=text id=des001>
  16. mobile sequence
  17. </div>
  18. </div>
  19.  
  20. $(this).click(function(event){
  21. var myTarget = $(event.target);
  22. if (myTarget.hasClass('pic') {
  23. myTarget.animate({width: "75%"}, 650 );
  24. }
  25.  
  26. });
Add Comment
Please, Sign In to add comment