Posts

swingdrag.js---a jQuery UI plugin, which adds a nice swing effect to the jQuery UI drag function

Image
GitHub here swingdrag is a jQuery UI plugin, which adds a nice swing effect to the jQuery UI drag function. Step1: link the swingdrag.css file <link rel="stylesheet" type="text/css" href="css/swingdrag.css"> link the jquery , jquery-ui and swingdrag.min.js <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script type="text/javascript" src="js/jquery.ui.swingdrag.min.js"></script> Step2: html Wrap the content in the div named container. css Basic styling sheet. swingdrag.css Swingdrag.css is for adding shadow. Step3: JS Usage js $( "#element" ).swingdrag({    // The angle of rotation in degree. default is 8    rotati...

xSlider.js---automatic slider plugin with jQuery

Image
xSlider.js is a tiny jquuery slide plugin which is simple and quick and friendly apply to ie8. GitHub here Step1: link jquery and xSlider.js         <script src="js/jquery.min.js"></script> <script type="text/javascript" src="js/xSlider.js"></script> And css file <link rel="stylesheet" href="css/main.css"> Step2: html HTML should be in the div named slider>slider-img>slider-img-ul>li... In the demo,it has five images, so here the list items should be two more :before first one and last one to expend the images gallery. css css CSS main styling code: .slider {      width : 1200px ;      margin : 50px auto ;      position : relative ; } .slider:hover .slider-btn {      color : #fff ;      text-shadow : 0 0 5px #666 ; } .slider .slider-img {      width...