A Pen by Captain Anonymous on CodePen.
Created
December 3, 2015 17:30
-
-
Save dereklucas/b6ab7a34bea2707326f7 to your computer and use it in GitHub Desktop.
QyLeVO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="show thumb"> | |
<img class="thumb" src="http://api.arcivr.com/api/events/PUV6EF/posts/6573/media/thumb"> | |
<img class="media" src="http://api.arcivr.com/api/events/PUV6EF/posts/6573/media/media"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
setInterval(function() { | |
$('.show').toggleClass('thumb media') | |
}, 1000); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img { | |
display: none; | |
width: 100%; | |
} | |
.show.thumb .thumb, .show.media .media { | |
display: block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment