cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

  <div id = "button">
    Click me

<!-- Developed by Thanakron Tandavas, 2013 --!>
  margin: 100px auto 0 auto;
  width: 250px;
	height: 50px;
	color: white;
  font-size: 25px;
  line-height: 50px;
  text-align: center;
  -webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	background-color: rgb(102, 123, 188);
	-webkit-box-shadow: 0px 7px 0px rgba(68, 97, 173, 1.0);
	-moz-box-shadow: 0px 7px 0px rgba(68, 97, 173, 1.0);
	box-shadow: 0px 7px 0px rgba(68, 97, 173, 1.0);

              $(document).ready(function() {
  //get the element
  var $button = $('#button');
  //get current margin-top of element
  var marginMax = parseFloat($button.css('marginTop'));
  //calc how up button goes
  var marginMin = (marginMax - 5) + "px";
  function initJumpButton() {
    $button.animate({marginTop: marginMin}, 'fast');
    $button.animate({marginTop: marginMax}, 'fast');
  //set interval for repeating jumpButton
  var timer = setInterval(initJumpButton, 200);
  //clear repeating
  $button.on('click', function() {

Loading ..................