Skip to content

Instantly share code, notes, and snippets.

@bmarshall511
Created August 20, 2014 16:28
Show Gist options
  • Save bmarshall511/4379981b44983c7095da to your computer and use it in GitHub Desktop.
Save bmarshall511/4379981b44983c7095da to your computer and use it in GitHub Desktop.
<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