Created
August 20, 2014 16:28
-
-
Save bmarshall511/4379981b44983c7095da to your computer and use it in GitHub Desktop.
This file contains hidden or 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 id="your-content"> | |
<h3 class="title">Traffic Pop jQuery Plugin</h3> | |
<div class="mid"> | |
You content here (ex. social network sharing buttons) | |
</div> | |
</div> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script src="jquery.trafficPop.js"></script> | |
<script> | |
$(function() { | |
$('#your-content').trafficPop({ | |
timeout: 3, // number of seconds until traffic pop triggers, default: 3 | |
timer: false, // true/false, enables the timer on traffic pop, default: true | |
wait: 10, // number of seconds for the traffic pop timer, default: 10 | |
trigger: '.show-pop' // the element to trigger traffic pop, default: .show-pop | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment