I'm making a Tumblr theme and this is the code I got from another Tumblr blog.
div.fade {
display: none;
}
And for the JQuery.
<script>
//JQuery Fader code
$(document).ready(function(){
setTimeout(function(){
// Slow can be any number of ms
$("div.fade").fadeIn('slow', function () {
// Do nothing
});
}, 2000); // Fade in after 2000 ms (2 secs)
});
</script>
Here's the fade div.
<div class="fade">
<a href="{Permalink}"><time datetime="{TimeAgo}">{TimeAgo}</time> /
{block:NoteCount}<a class="notecount" href="{Permalink}#notes">{NoteCountWithLabel}</a>{/block:NoteCount} /
{block:ContentSource}
<a href="{SourceURL}">{lang:Source}:{block:NoSourceLogo}{SourceTitle}{/block:NoSourceLogo}</a> /
{/block:ContentSource}
<div class="my-like" data-reblog="{ReblogURL}" data-id="{PostID}" title="Like">♥</div> /
<a href=”{ReblogURL}” target=”_blank”>{ReblogButton size="15"}</a>
</div>
Is there anyway I can get it to work properly?
JSFiddle: http://jsfiddle.net/8vnR4/