
Jquery automatic image slider is developed in HTML, CSS3 and Jquery. This slider is used for multipurpose slideshow on your websites.
Create index.html and paste the below javascript and CSS url in the header section.
1 2 3 |
<link rel="stylesheet" type="text/css" href="css/slider.css" /> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="js/modernizr.custom.js"></script> |
After that copy the below HTML code and paste in body section.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<div class="container"> <header> <h1><span>Jquery automatic html slider free download live demo and download</span></h1> </header> <section id="dg-container" class="dg-container"> <div class="dg-wrapper"> <a href="#"><img src="images/1.jpg" alt="JAVASCRIPT"><div>JAVASCRIPT</div></a> <a href="#"><img src="images/2.jpg" alt="HTML"><div>HTML</div></a> <a href="#"><img src="images/3.jpg" alt="CSS"><div>CSS3</div></a> <a href="#"><img src="images/4.jpg" alt="WORDPRESS"><div>WORDPRESS</div></a> <a href="#"><img src="images/5.jpg" alt="JQUERY"><div>JQUERY</div></a> </div> <nav> <span class="dg-prev"><</span> <span class="dg-next">></span> </nav> </section> </div> |
Apart from this copy the below jquery link and javascript url and paste it in the footer section, Before the body section closed. You can also download the Jquery from Ajax library and place it in the project js folder.
1 2 3 4 5 6 7 8 9 |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript"> $(function() { $('#dg-container').gallery({ autoplay:true }); }); </script/> |
Create style.css and paste the below CSS to design the image slideshow or you can also download CSS file from the below given link and place it in a project CSS folder
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
.dg-container{ width: 100%; height: 450px; position: relative; } .dg-wrapper{ width: 481px; margin: 0 auto; position: relative; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; -ms-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-perspective: 1000px; -moz-perspective: 1000px; -o-perspective: 1000px; -ms-perspective: 1000px; perspective: 1000px; } .dg-wrapper a{ width: 482px; display: block; position: absolute; left: 0; top: 0; background: transparent url(../images/browser.png) no-repeat top left; box-shadow: 0px 10px 20px rgba(0,0,0,0.3); } .dg-wrapper a.dg-transition{ -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; } .dg-wrapper a img{ display: block; padding: 41px 0px 0px 1px; } .dg-wrapper a div{ font-style: italic; text-align: center; line-height: 50px; color: #fff; font-size: 16px; width: 100%; bottom: -12px; display: none; position: absolute; } .dg-wrapper a.dg-center div{ display: block; } .dg-container nav{ width: 58px; position: absolute; z-index: 1000; bottom: 40px; left: 50%; margin-left: -29px; } .dg-container nav span{ text-indent: -9000px; float: left; cursor:pointer; width: 24px; height: 25px; opacity: 0.8; background: transparent url(../images/arrows.png) no-repeat top left; } .dg-container nav span:hover{ opacity: 1; } .dg-container nav span.dg-next{ background-position: top right; margin-left: 10px; } |
Create another slider.css and paste the below css for style.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
@font-face { font-family: 'Muli Regular'; font-style: normal; font-weight: normal; src: local('Muli Regular'), url('Muli-Regular.woff') format('woff'); } /* CSS reset */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; } html,body { margin:0; padding:0; } table { border-collapse:collapse; border-spacing:0; } fieldset,img { border:0; } address,caption,cite,code,dfn,th,var { font-style:normal; font-weight:normal; } ol,ul { list-style:none; } caption,th { text-align:left; } h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; } q:before,q:after { content:''; } abbr,acronym { border:0; } section, header{ display: block; } /* General Demo Style */ body{ font-family: "Muli Regular" serif; background: #333 url(../images/bg.jpg) repeat top left; font-weight: 400; font-size: 15px; color: #f0f0f0; overflow-y: scroll; } a{ color: #ddd; text-decoration: none; } a:hover{ color: #fff; } .container{ width: 100%; position: relative; text-align: center; } .clr{ clear: both; } .container > header{ padding: 20px 30px 10px 30px; margin-bottom: 40px; position: relative; display: block; text-align: center; } .container > header h1{ font-family: "Muli Regular", Arial, sans-serif; font-size: 35px; position: relative; font-weight: 300; text-transform: uppercase; color: rgba(101,141,114,0.9); text-shadow: 1px 1px 1px rgba(0,0,0,0.2); padding: 0px 0px 5px 0px; } .container > header h1 span{ color: #fff; text-shadow: 1px 1px 1px rgba(255,255,255,0.4); } .container > header h2{ } /* Header Style */ .codrops-top{ line-height: 24px; font-size: 11px; background: rgba(255, 255, 255, 0.5); text-transform: uppercase; z-index: 9999; position: relative; box-shadow: 1px 0px 2px rgba(0,0,0,0.2); -webkit-animation: slideOut 0.5s ease-in-out 0.3s backwards; } @-webkit-keyframes slideOut{ 0%{top:-30px; opacity: 0;} 100%{top:0px; opacity: 1;} } .codrops-top a{ padding: 0px 10px; letter-spacing: 1px; color: #333; text-shadow: 0px 1px 1px #fff; display: block; float: left; } .codrops-top a:hover{ background: #fff; } .codrops-top span.right{ float: right; } .codrops-top span.right a{ float: left; display: block; } .codrops-demos{ text-align:center; display: block; padding-top: 20px; } .codrops-demos a, .codrops-demos a.current-demo, .codrops-demos a.current-demo:hover{ display: inline-block; border: 1px solid #719c7f; padding: 4px 10px 3px; font-size: 13px; line-height: 18px; margin: 0px 3px; font-weight: 800; -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); -moz-box-shadow:0px 1px 1px rgba(0,0,0,0.1); box-shadow: 0px 1px 1px rgba(0,0,0,0.1); color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,0.9); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; background: #90bd9e; background: -moz-linear-gradient(top, #90bd9e 0%, #72a081 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#90bd9e), color-stop(100%,#72a081)); background: -webkit-linear-gradient(top, #90bd9e 0%,#72a081 100%); background: -o-linear-gradient(top, #90bd9e 0%,#72a081 100%); background: -ms-linear-gradient(top, #90bd9e 0%,#72a081 100%); background: linear-gradient(top, #90bd9e 0%,#72a081 100%); } .codrops-demos a:hover{ background: #85b995; } .codrops-demos a:active{ -webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.4); -moz-box-shadow:0px 1px 1px rgba(255,255,255,0.4); box-shadow: 0px 1px 1px rgba(255,255,255,0.4); } .codrops-demos a.current-demo, .codrops-demos a.current-demo:hover{ color: #506757; text-shadow: 0px 1px 1px rgba(255,255,255,0.3); } /* Media Queries */ @media screen and (max-width: 767px) { .container > header{ text-align: center; } p.codrops-demos { position: relative; top: auto; left: auto; } } |
Jquery automatic HTML slider free project source code download by clicking on the download button.