JQuery FlexSlider responsive
How do I make an jquery flexslider responsive?
What is a jquery flexslider responsive? How do you make a jquery flexslider responsive? This script and codes were developed by Adethrax on 12 August 2022, Friday.
JQuery FlexSlider responsive - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>jQuery FlexSlider responsive</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Place somewhere in the <body> of your page -->
<div class="flexslider"> <ul class="slides"> <li> <h2>This Is The Title</h2> <p>These are your lines of text</p> <img src="http://livedemo00.template-help.com/wordpress_52721/wp-content/uploads/2014/12/page1-img3.jpg" /> </li> <li> <h2>This Is The Title</h2> <p>These are your lines of text, Change as needed and this will drop onto another line</p> <img src="http://livedemo00.template-help.com/wordpress_52721/wp-content/uploads/2014/12/page1-img3.jpg" /> </li> <li> <h2>This Is The Title</h2> <p>These are your lines of text</p> <img src="http://livedemo00.template-help.com/wordpress_52721/wp-content/uploads/2014/12/page1-img3.jpg" /> </li> <li> <h2>This Is The Title</h2> <p>These are your lines of text, Change as needed and this will drop onto another line</p> <img src="http://livedemo00.template-help.com/wordpress_52721/wp-content/uploads/2014/12/page1-img3.jpg" /> </li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.3.0/jquery.flexslider.js'></script> <script src="js/index.js"></script>
</body>
</html>
JQuery FlexSlider responsive - Script Codes CSS Codes
.slides img { opacity:0.2;}
.slides { padding:0; margin:0; }
.flexslider h2 { position:absolute; padding:1%; }
.flexslider p { position:absolute; padding:2%; width: 5%; }
@media screen and (min-width: 500px){ .flexslider h2 { font-size: 30px; } .flexslider p { font-size: 20px; }
}
@media screen and (min-width: 570px){ .flexslider h2 { font-size: 32px; } .flexslider p { font-size: 22px; }
}
@media screen and (min-width: 620px){ .flexslider h2 { font-size: 34px; } .flexslider p { font-size: 24px; }
}
@media screen and (min-width: 680px){ .flexslider h2 { font-size: 36px; } .flexslider p { font-size: 26px; }
}
@media screen and (min-width: 720px){ .flexslider h2 { font-size: 38px; } .flexslider p { font-size: 28px; }
}
@media screen and (min-width: 800px){ .flexslider h2 { font-size: 40px; } .flexslider p { font-size: 30px; }
}
@media screen and (min-width: 860px){ .flexslider h2 { font-size: 42px; } .flexslider p { font-size: 32px; }
}
@media screen and (min-width: 920px){ .flexslider h2 { font-size: 44px; } .flexslider p { font-size: 34px; }
}
@media screen and (min-width: 1000px){ .flexslider h2 { font-size: 46px; } .flexslider p { font-size: 36px; }
}
@font-face { font-family: 'flexslider-icon'; src: url('fonts/flexslider-icon.eot'); src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('fonts/flexslider-icon.woff') format('woff'), url('fonts/flexslider-icon.ttf') format('truetype'), url('fonts/flexslider-icon.svg#flexslider-icon') format('svg'); font-weight: normal; font-style: normal;
}
/* ==================================================================================================================== * RESETS * ====================================================================================================================*/
.flex-container a:hover,
.flex-slider a:hover,
.flex-container a:focus,
.flex-slider a:focus { outline: none;
}
.slides,
.slides > li,
.flex-control-nav,
.flex-direction-nav { margin: 0; padding: 0; list-style: none;
}
.flex-pauseplay span { text-transform: capitalize;
}
/* ==================================================================================================================== * BASE STYLES * ====================================================================================================================*/
.flexslider { margin: 0; padding: 0;
}
.flexslider .slides > li { display: none; -webkit-backface-visibility: hidden;
}
.flexslider .slides img { width: 100%; display: block;
}
.flexslider .slides:after { content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;
}
html[xmlns] .flexslider .slides { display: block;
}
* html .flexslider .slides { height: 1%;
}
.no-js .flexslider .slides > li:first-child { display: block;
}
/* ==================================================================================================================== * DEFAULT THEME * ====================================================================================================================*/
.flexslider { margin: 0 0 60px; background: #ffffff; border: 4px solid #ffffff; position: relative; zoom: 1; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); -moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); -o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
}
.flexslider .slides { zoom: 1;
}
.flexslider .slides img { height: auto;
}
.flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -ms-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease;
}
.loading .flex-viewport { max-height: 300px;
}
.carousel li { margin-right: 5px;
}
.flex-direction-nav { *height: 0;
}
.flex-direction-nav a { text-decoration: none; display: block; width: 40px; height: 40px; margin: -20px 0 0; position: absolute; top: 50%; z-index: 10; overflow: hidden; opacity: 0; cursor: pointer; color: rgba(0, 0, 0, 0.8); text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
}
.flex-direction-nav a:before { font-family: "flexslider-icon"; font-size: 40px; display: inline-block; content: '\f001'; color: rgba(0, 0, 0, 0.8); text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}
.flex-direction-nav a.flex-next:before { content: '\f002';
}
.flex-direction-nav .flex-prev { left: -50px;
}
.flex-direction-nav .flex-next { right: -50px; text-align: right;
}
.flexslider:hover .flex-direction-nav .flex-prev { opacity: 0.7; left: 10px;
}
.flexslider:hover .flex-direction-nav .flex-prev:hover { opacity: 1;
}
.flexslider:hover .flex-direction-nav .flex-next { opacity: 0.7; right: 10px;
}
.flexslider:hover .flex-direction-nav .flex-next:hover { opacity: 1;
}
.flex-direction-nav .flex-disabled { opacity: 0!important; filter: alpha(opacity=0); cursor: default;
}
.flex-pauseplay a { display: block; width: 20px; height: 20px; position: absolute; bottom: 5px; left: 10px; opacity: 0.8; z-index: 10; overflow: hidden; cursor: pointer; color: #000;
}
.flex-pauseplay a:before { font-family: "flexslider-icon"; font-size: 20px; display: inline-block; content: '\f004';
}
.flex-pauseplay a:hover { opacity: 1;
}
.flex-pauseplay a .flex-play:before { content: '\f003';
}
.flex-control-nav { width: 100%; position: absolute; bottom: -40px; text-align: center;
}
.flex-control-nav li { margin: 0 6px; display: inline-block; zoom: 1; *display: inline;
}
.flex-control-paging li a { width: 11px; height: 11px; display: block; background: #666; background: rgba(0, 0, 0, 0.5); cursor: pointer; text-indent: -9999px; -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px;
}
.flex-control-paging li a:hover { background: #333; background: rgba(0, 0, 0, 0.7);
}
.flex-control-paging li a.flex-active { background: #000; background: rgba(0, 0, 0, 0.9); cursor: default;
}
.flex-control-thumbs { margin: 5px 0 0; position: static; overflow: hidden;
}
.flex-control-thumbs li { width: 25%; float: left; margin: 0;
}
.flex-control-thumbs img { width: 100%; height: auto; display: block; opacity: .7; cursor: pointer; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -ms-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease;
}
.flex-control-thumbs img:hover { opacity: 1;
}
.flex-control-thumbs .flex-active { opacity: 1; cursor: default;
}
/* ==================================================================================================================== * RESPONSIVE * ====================================================================================================================*/
@media screen and (max-width: 860px) { .flex-direction-nav .flex-prev { opacity: 1; left: 10px; } .flex-direction-nav .flex-next { opacity: 1; right: 10px; }
}
JQuery FlexSlider responsive - Script Codes JS Codes
// Can also be used with $(document).ready()
$(window).load(function() { $('.flexslider').flexslider({ animation: "slide" });
});
Developer | Adethrax |
Username | adethrax |
Uploaded | August 12, 2022 |
Rating | 3 |
Size | 3,418 Kb |
Views | 38,456 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Bootstrap Homepage | 5,917 Kb |
Owl-carousel 1Frame | 1,978 Kb |
Hover Box CSS | 1,652 Kb |
Title Box Hover | 1,837 Kb |
Responsive images - hover | 2,135 Kb |
Bootstrap Image Boxes | 1,681 Kb |
Scroll Image Script | 1,884 Kb |
A Pen by adethrax | 7,401 Kb |
Animate Images With CSS | 1,704 Kb |
Fancybox.js | 2,409 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Wikipedia Viewer | Codinger | 4,681 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
Wikipedia API | Coderpilot | 2,802 Kb |
A Pen by Paul Sullivan | Pwsm50 | 2,349 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Header Line Issue | Charlie-volpe | 1,768 Kb |
Improve | Gavra | 1,652 Kb |
Rain Landing in a Pond | Edball | 3,009 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
Vertical Pan Hammer.js example | Jtangelder | 2,144 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!