Slider with oblique border

Developer
Size
2,296 Kb
Views
72,864

How do I make an slider with oblique border?

A little play with css. What is a slider with oblique border? How do you make a slider with oblique border? This script and codes were developed by Kseso on 23 August 2022, Tuesday.

Slider with oblique border Previews

Slider with oblique border - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slider with oblique border</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ html {background: #d5d5d5;}
#slider-k {
background: #fff;
width: 600px;
height: 300px;
margin: 20px auto;
overflow: hidden;
border-radius: .5rem;
box-shadow: 0 0 7px rgba(0, 0, 0, 0.7);
}
#slider-k .frame-k {
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 30%;
height: 100%;
float: left;
overflow: hidden;
border-left: 10px solid #fff;
pointer: cursor;
box-shadow: 0 0 7px rgba(0, 0, 0, 0.9);
transform: skewX(-20deg);
transition: width 1.2s ease-in-out;
}
#slider-k:hover div {width: 108px;cursor: w-resize;}
#slider-k:hover div:hover {
width: 392px;}
.frame-k img {
margin-left: -55px;
transform: skewX(20deg);
}
#slider-k > div:first-child {margin-left: -63px;}
#slider-k > div:last-child {margin-right: -63px;} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h2><a href='http://3.bp.blogspot.com/-NfaxRzCwymI/UJ1Dz-_QQSI/AAAAAAAADgQ/73uWKRloGOw/s1600/slider-oblicuo.jpg'>The post</a></h2>
<div id="slider-k"> <div class="frame-k"> <img src="http://lorempixel.com/500/300/nature" alt="" /> </div> <div class="frame-k"> <img src="http://lorempixel.com/500/300/animals" alt="" /> </div> <div class="frame-k"> <img src="http://lorempixel.com/500/300/people" alt="" /> </div> <div class="frame-k"> <img src="http://lorempixel.com/500/300/transport" alt="" /> </div>
</div>
</body>
</html>

Slider with oblique border - Script Codes CSS Codes

html {background: #d5d5d5;}
#slider-k {
background: #fff;
width: 600px;
height: 300px;
margin: 20px auto;
overflow: hidden;
border-radius: .5rem;
box-shadow: 0 0 7px rgba(0, 0, 0, 0.7);
}
#slider-k .frame-k {
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 30%;
height: 100%;
float: left;
overflow: hidden;
border-left: 10px solid #fff;
pointer: cursor;
box-shadow: 0 0 7px rgba(0, 0, 0, 0.9);
transform: skewX(-20deg);
transition: width 1.2s ease-in-out;
}
#slider-k:hover div {width: 108px;cursor: w-resize;}
#slider-k:hover div:hover {
width: 392px;}
.frame-k img {
margin-left: -55px;
transform: skewX(20deg);
}
#slider-k > div:first-child {margin-left: -63px;}
#slider-k > div:last-child {margin-right: -63px;}
Slider with oblique border - Script Codes
Slider with oblique border - Script Codes
Home Page Home
Developer Kseso
Username Kseso
Uploaded August 23, 2022
Rating 4.5
Size 2,296 Kb
Views 72,864
Do you need developer help for Slider with oblique border?

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!

Kseso (Kseso) Script Codes
Create amazing sales emails 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!