Sidebar - III
Lesson 8 of 13 in Coddy's Sidebar | Front-end Project course.
Challenge
EasyTarget class 'sidebar':
1. Set overflow to hidden for x.
2. Set the duration of the transition to 0.5s.
3. Add a padding of your choice.
Try it yourself
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
<title>Sidebar</title>
</head>
<body>
<button id="openSidebarBtn">Open</button>
<div id="sidebar" class="sidebar">
<button id="closeSidebarBtn">Close</button>
<p>Home</p>
<p>About</p>
<p>Services</p>
<p>Contact</p>
</div>
<script src="script.js"></script>
</body>
</html>All lessons in Sidebar | Front-end Project
1Introduction
What you will build?