Fancy Horizontal Rules
How do I make an fancy horizontal rules?
Messing around with some fancy horizontal rule styles.. What is a fancy horizontal rules? How do you make a fancy horizontal rules? This script and codes were developed by Szpakoli on 31 January 2023, Tuesday.
Fancy Horizontal Rules - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fancy Horizontal Rules</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> <section> <div class="container"> <h1>Lorem Ipsum <br />Dolor Sit Amet.</h1> <hr class="center-ball"> <p>Aliquam egestas elementum mid et, sit habitasse ac et lorem in urna nunc ac phasellus, et turpis! Turpis, integer. Dignissim, ut dolor ut, in pulvinar tincidunt natoque porttitor eros.</p> </div><!-- /.container -->
</section><!-- /section -->
<section> <div class="container"> <h1>Lorem Ipsum <br />Dolor Sit Amet.</h1> <hr class="center-diamond"> <p>Aliquam egestas elementum mid et, sit habitasse ac et lorem in urna nunc ac phasellus, et turpis! Turpis, integer. Dignissim, ut dolor ut, in pulvinar tincidunt natoque porttitor eros.</p> </div><!-- /.container -->
</section><!-- /section -->
<section> <div class="container"> <h1>Lorem Ipsum <br />Dolor Sit Amet.</h1> <hr class="center-square"> <p>Aliquam egestas elementum mid et, sit habitasse ac et lorem in urna nunc ac phasellus, et turpis! Turpis, integer. Dignissim, ut dolor ut, in pulvinar tincidunt natoque porttitor eros.</p> </div><!-- /.container -->
</section><!-- /section -->
<section> <div class="container"> <h1>Lorem Ipsum <br />Dolor Sit Amet.</h1> <hr class="center-star"> <p>Aliquam egestas elementum mid et, sit habitasse ac et lorem in urna nunc ac phasellus, et turpis! Turpis, integer. Dignissim, ut dolor ut, in pulvinar tincidunt natoque porttitor eros.</p> </div><!-- /.container -->
</section><!-- /section --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Fancy Horizontal Rules - Script Codes CSS Codes
@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800);
/* =Variables
----------------------------------------------------------------------------- */
body { background: #e6e6e6; margin: 0; text-align: center; font-family: 'Open Sans', sans-serif; color: #4d4d4d; font-size: 14px; line-height: 22px;
}
h1 { font-family: 'Open Sans', sans-serif; font-size: 48px; font-weight: 800; color: #204056; line-height: 57px;
}
section { width: 100%; position: relative;
}
section:nth-child(even) { background: #d9d9d9;
}
.container { width: 960px; margin: 0 auto; padding: 40px 0;
}
hr { border: 0; height: 1px; width: 10%; position: relative; margin: 30px auto;
}
hr.center-ball { background: #39D1B4;
}
hr.center-ball:before { content: ""; width: 6px; height: 6px; background: #39D1B4; display: inline-block; border: 2px solid #39D1B4; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; position: absolute; top: -4px; left: 50%; margin: 0 0 0 -3px;
}
hr.center-diamond { background: #39D1B4;
}
hr.center-diamond:before { content: ""; width: 6px; height: 6px; background: #39D1B4; display: inline-block; border: 2px solid #39D1B4; position: absolute; top: -5px; left: 50%; margin: 0 0 0 -3px; transform: rotate(45deg); -ms-transform: rotate(45deg); /* IE 9 */ -webkit-transform: rotate(45deg); /* Opera, Chrome, and Safari */
}
hr.center-square { background: #39D1B4;
}
hr.center-square:before { content: ""; width: 6px; height: 6px; background: #39D1B4; display: inline-block; border: 2px solid #39D1B4; position: absolute; top: -5px; left: 50%; margin: 0 0 0 -3px;
}
hr.center-star { background: #39D1B4;
}
hr.center-star:before { content: "★"; color: #39D1B4; display: inline-block; position: absolute; top: 0px; left: 50%; margin: 0 0 0 -3px; font-size: 15px; line-height: 0; text-shadow: 0 0 3px #d9d9d9;
}
p { width: 50%; margin: 0 auto 1em;
}
Fancy Horizontal Rules - Script Codes JS Codes
// Unneccesary stagger animation of the section elements
TweenMax.staggerFrom("section", .65, {top: "+=60px", opacity: 0, ease:Strong.easeOut}, 0.1);
Developer | Szpakoli |
Username | szpakoli |
Uploaded | January 31, 2023 |
Rating | 4 |
Size | 3,499 Kb |
Views | 4,048 |
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 |
Blog Card with Hover State | 0 Kb |
JSTree Test | 2,983 Kb |
Bootstrap Sticky Header and Search Bar | 0 Kb |
Icon List | 2,941 Kb |
Fancy Horizontal Rules | 3,499 Kb |
Scrollable div test | 0 Kb |
Wired Style Hover Links | 0 Kb |
Responsive Grid | 0 Kb |
Sample Preloader | 0 Kb |
Font Dev Tools | 0 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 |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Simple jQuery Slider | Jurbank | 2,874 Kb |
Text Looping Transition | Agelber | 5,619 Kb |
CSS Piano | Dannystyle | 5,138 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
Pericles mi loro... | Judag | 4,125 Kb |
Header Line Issue | Charlie-volpe | 1,768 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
Nice textured background | Hans | 2,659 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!