Modal Interaction Test
How do I make an modal interaction test?
Experimenting with a zoomed image modal.. What is a modal interaction test? How do you make a modal interaction test? This script and codes were developed by Todd Moy on 14 October 2022, Friday.
Modal Interaction Test - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Modal Interaction Test</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="image-container"> <img src="http://s2.ilooove.it/~files/library/spots/179/s10-57.jpg" />
</div>
<div class="sidebar sidebar-hidden"> <span class="entypo-cancel close-button"></span> <h1 class="title">Mallorca</h1> <p class="description">Donec sed odio dui. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Curabitur blandit tempus porttitor. Etiam porta sem malesuada magna mollis euismod. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
</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>
Modal Interaction Test - Script Codes CSS Codes
@import url(http://weloveiconfonts.com/api/?family=entypo);
* { box-sizing: border-box;
}
html { height: 100%;
}
body { display: -webkit-flex; height: 100%; font: 14px/18px "Helvetica Neue", Helvetica, sans-serif; overflow: hidden;
}
.image-container { background-color: #ecf0f1; display: -webkit-flex; -webkit-flex: 1 0 0; -webkit-justify-content: center; -webkit-align-items: center; cursor: pointer; transition: all 0.3s;
}
.image-container img { width: 300px; border: solid #fff 10px; transition: all 0.2s;
}
.image-container img:hover { transition: all 0.2s; box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}
.sidebar { margin-right: 0; padding: 20px; width: 300px; background-color: #fff; color: #2c3e50; height: 100%; transition: all 0.3s;
}
.sidebar .close-button { float: right; color: #ccc;
}
.sidebar .close-button:hover { cursor: pointer; color: #2980b9; transition: all 0.3s;
}
.sidebar .title { clear: both; font-weight: bold; font-size: 18px; margin-bottom: 9px;
}
.sidebar-hidden { margin-right: -300px; transition: all 0.3s;
}
.embiggen { background-color: #2c3e50; transition: all 0.3s;
}
.embiggen img { width: 100%; transition: all 0.1s; border: 0;
}
.embiggen img:hover { box-shadow: none;
}
Modal Interaction Test - Script Codes JS Codes
$(document).ready(function(){ $(".close-button").bind("click", function(){ $(".sidebar").toggleClass("sidebar-hidden"); $(".image-container").toggleClass("embiggen"); }); $(".image-container img").bind("click", function() { $(".sidebar").toggleClass("sidebar-hidden"); $(".image-container").toggleClass("embiggen"); });
});
Developer | Todd Moy |
Username | toddmoy |
Uploaded | October 14, 2022 |
Rating | 3.5 |
Size | 3,142 Kb |
Views | 12,144 |
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 |
Logo Animation | 2,580 Kb |
Flexbox test | 2,152 Kb |
Subscribe Button | 2,906 Kb |
Chrome Store Copy | 3,593 Kb |
Annotation Test | 2,431 Kb |
Header Test | 7,978 Kb |
Experiment | 3,868 Kb |
Loader 5 | 2,489 Kb |
A Pen by Todd Moy | 2,144 Kb |
Hidden Menu Test | 3,582 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 |
Board Site | IndianaLuft | 10,542 Kb |
Magnus 3 | ARocketfish | 7,944 Kb |
Fluid Layout with Float | Jxqr97 | 1,785 Kb |
TimelineMax Circular loader | Nicolund | 2,649 Kb |
A form arranged using automatic placement. | Vikasford | 2,103 Kb |
A Pen by Manoz | Manoz | 2,424 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
Responsive scrolling text | Ashdurham | 2,259 Kb |
Promodoro | Bencarp | 1,712 Kb |
Part 19 Bootstrap split button dropdown | Venkatesha | 1,601 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!