Expanding panels onmouseover

Developer
Size
2,342 Kb
Views
28,336

How do I make an expanding panels onmouseover?

What is a expanding panels onmouseover? How do you make a expanding panels onmouseover? This script and codes were developed by Ex HTML on 15 September 2022, Thursday.

Expanding panels onmouseover Previews

Expanding panels onmouseover - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Expanding panels onmouseover</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="box"> <div class="half left"> <p>Fru</p> </div> <div class="half right"> <p>Frucor</p> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Expanding panels onmouseover - Script Codes CSS Codes

.box { width: 70%; height: 200px; margin: 20px auto; background-color: lightgray; overflow: hidden;
}
.half { width: 50%; height: 100%; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
}
.half > p { background-color: orange; padding: 1rem; color: #fff; -webkit-transform: translateY(-20px); transform: translateY(-20px); opacity: 0; -webkit-transition: all 0.2s ease-in-out 0.2s; transition: all 0.2s ease-in-out 0.2s;
}
.half:hover { width: 75%;
}
.half:hover > p { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1;
}
.half.disabled { width: 25%;
}
.left { float: left; background-color: coral;
}
.right { float: right; background-color: cyan;
}

Expanding panels onmouseover - Script Codes JS Codes

$('.left').on('mouseover', function(){ $(this).next().addClass('disabled'); $(this).removeClass('disabled');
});
$('.right').on('mouseover', function(){ $(this).prev().addClass('disabled'); $(this).removeClass('disabled');
});
$('.box').on('mouseout', function(){ $('.half').removeClass('disabled');
});
Expanding panels onmouseover - Script Codes
Expanding panels onmouseover - Script Codes
Home Page Home
Developer Ex HTML
Username exhtml
Uploaded September 15, 2022
Rating 3
Size 2,342 Kb
Views 28,336
Do you need developer help for Expanding panels onmouseover?

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!

Ex HTML (exhtml) 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!