Skip to content

Instantly share code, notes, and snippets.

@dereklucas
Created December 3, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dereklucas/b6ab7a34bea2707326f7 to your computer and use it in GitHub Desktop.
Save dereklucas/b6ab7a34bea2707326f7 to your computer and use it in GitHub Desktop.
QyLeVO
<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>
$(document).ready(function () {
setInterval(function() {
$('.show').toggleClass('thumb media')
}, 1000);
});
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
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