Dynamic Content Panel

Developer
Size
2,194 Kb
Views
22,264

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 Previews

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');
});
Dynamic Content Panel - Script Codes
Dynamic Content Panel - Script Codes
Home Page Home
Developer Ken Yiu
Username kenyiu
Uploaded November 18, 2022
Rating 3
Size 2,194 Kb
Views 22,264
Do you need developer help for Dynamic Content Panel?

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!

Ken Yiu (kenyiu) Script Codes
Create amazing blog posts with AI!

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!