Flexbox Demo
How do I make an flexbox demo?
A quick demo to show the main flexbox properties.. What is a flexbox demo? How do you make a flexbox demo? This script and codes were developed by Andreas Neeven on 18 September 2022, Sunday.
Flexbox Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flexbox Demo</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="wrapper">
<div class="container"> <div class="item item-1"><span>1</span></div> <div class="item item-2"><span>2</span></div> <div class="item item-3"><span>3</span></div> <div class="item item-4"><span>4</span></div> <div class="item item-5"><span>5</span></div> <div class="item item-6"><span>6</span></div>
</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>
Flexbox Demo - Script Codes CSS Codes
* { -webkit-transition: all 3s ease; transition: all 3s ease;
}
.wrapper { position: absolute; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; width: 100%; height: 100%; background-color: #333;
}
.container { width: 1000px; height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; background-color: #333; cursor: pointer; /* ================ */ /* + reverse*/ /* DEFAULT "ROW NOWRAP"*/ /* flex-direction: column; flex-wrap: wrap;*/ -ms-flex-flow: column nowrap; flex-flow: column nowrap; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; /*animation: schieben 3s linear;*/
}
.container .item { display: -webkit-box; display: -ms-flexbox; display: flex; width: 200px; height: 200px; background-color: #B4D455; border: 1px solid black; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
span { color: #333; font-size: 24px;
}
/*
@keyframes schieben { from { flex-flow: column nowrap; } to { flex-flow: row wrap; }
}*/
.flexyo { -ms-flex-flow: row wrap; flex-flow: row wrap;
}
Flexbox Demo - Script Codes JS Codes
$container = $('.container');
$container.on('click', function() {
$container.addClass('flexyo').fadeIn(slow);
});
Developer | Andreas Neeven |
Username | aneeven |
Uploaded | September 18, 2022 |
Rating | 3 |
Size | 2,648 Kb |
Views | 52,624 |
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 |
Sass loop | 2,652 Kb |
SVG Heart Animation | 2,753 Kb |
Mail Element Concept | 3,609 Kb |
Flexbox align | 2,098 Kb |
Yet another card... | 3,819 Kb |
Yay for blend-modes | 2,443 Kb |
Spinning Loader | 10,644 Kb |
Flexbox Order | 2,117 Kb |
Flexbox grow, shrink and basis | 2,305 Kb |
Menubar blur content | 3,942 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 |
Funny menu | AxeLVaisper | 4,671 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
A Pen by Tosh | Panev | 2,586 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Horizontal scroll fixed element | HerrSerker | 0 Kb |
A Pen by Huan Nghiem | Nightshade | 10,646 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Lightrays v2 | Sinthetyc | 2,903 Kb |
Next Word Predictor | Rfalor | 2,776 Kb |
Basecamp 3 Document | Lachlanjc | 3,811 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!