Dynamic Content Panel
How do I make an dynamic content panel?
What is a dynamic content panel? How do you make a dynamic content panel? This script and codes were developed by Ken Yiu on 18 November 2022, Friday.
Dynamic Content Panel - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Dynamic Content Panel</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container-fluid"> <div class="row" id="content-box"> <div class="content-container" id="content1"> content 1 </div> <div class="content-container" id="content2"> content 2 </div> <div class="content-container" id="content3"> content 3 </div> <div class="content-container" id="content4"> content 4 </div> </div> <div class="row picture-container"> <div class="col btn1"><img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcR71pZ-6skPHjP7yDeKVVret8fu5Bdu1KSERMiTHfSmbsWxUp_G" /></div> <div class="col btn2"><img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcR71pZ-6skPHjP7yDeKVVret8fu5Bdu1KSERMiTHfSmbsWxUp_G" /></div> <div class="col btn3"><img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcR71pZ-6skPHjP7yDeKVVret8fu5Bdu1KSERMiTHfSmbsWxUp_G" /></div> <div class="col btn4"><img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcR71pZ-6skPHjP7yDeKVVret8fu5Bdu1KSERMiTHfSmbsWxUp_G" /></div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Dynamic Content Panel - Script Codes CSS Codes
* { box-sizing: border-box;
}
.content-container { width: 100%; height: 500px; background-color: #ED1234; color: #fff; text-align: center; position: absolute; font-size: 40px;
}
#content-box { height: 500px;
}
.picture-container { background-color: #333; display: flex; flex-flow: row wrap; justify-content: flex-start;
}
.col { flex: 1; cursor: pointer;
}
.col img { width: 100%; filter: brightness(50%); transition: all 0.3s;
}
.col img:hover { filter: brightness(80%);
}
Dynamic Content Panel - Script Codes JS Codes
$('.btn1').click(function(){ $('.content-container').css('z-index','1'); $('.col img').css('filter',"brightness\(50%\)"); $('.btn1 img').css('filter',"brightness\(100%\)"); $('#content1').css('z-index','9999');
});
$('.btn2').click(function(){ $('.content-container').css('z-index','1'); $('.col img').css('filter',"brightness\(50%\)"); $('.btn2 img').css('filter',"brightness\(100%\)"); $('#content2').css('z-index','9999');
});
$('.btn3').click(function(){ $('.content-container').css('z-index','1'); $('.col img').css('filter','brightness\(50%\)'); $('.btn3 img').css('filter',"brightness\(100%\)"); $('#content3').css('z-index','9999');
});
$('.btn4').click(function(){ $('.content-container').css('z-index','1'); $('.col img').css('filter',"brightness\(50%\)"); $('.btn4 img').css('filter',"brightness\(100%\)"); $('#content4').css('z-index','9999');
});
Developer | Ken Yiu |
Username | kenyiu |
Uploaded | November 18, 2022 |
Rating | 3 |
Size | 2,194 Kb |
Views | 22,264 |
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 |
RWD-ISD-A-FullPage Start Kit | 10,685 Kb |
Jquery mousemove animation | 2,071 Kb |
Responsive Flexbox Nav | 2,236 Kb |
A Pen by Ken Yiu | 2,456 Kb |
JQuery scrollTop sticky header | 2,776 Kb |
RWD-ISD-A-Class05 | 2,261 Kb |
RWD-ISD-ClassA-9A | 1,899 Kb |
RWD-B Class3b | 1,552 Kb |
SD3100 - Boxify Fluid Layout | 1,612 Kb |
SD3100 FullPage Starter Kit | 2,360 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 |
Materializecss input form | Jasonchan | 1,443 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
Sign Up Form | Sicontis | 5,272 Kb |
Acorrdian 2016 | Milanodituti | 3,720 Kb |
Pictos font library from CodePen | Jstam | 3,790 Kb |
A Pen by Adrien Clerbois | AClerbois | 6,501 Kb |
Portfolio Page | KaylaMT | 1,983 Kb |
TestTube CSS | EZPK | 2,710 Kb |
Transition | Shayhowe | 1,632 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!