Fancy Horizontal Rules

Developer
Size
3,499 Kb
Views
4,048

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 Previews

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);
Fancy Horizontal Rules - Script Codes
Fancy Horizontal Rules - Script Codes
Home Page Home
Developer Szpakoli
Username szpakoli
Uploaded January 31, 2023
Rating 4
Size 3,499 Kb
Views 4,048
Do you need developer help for Fancy Horizontal Rules?

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!

Szpakoli (szpakoli) Script Codes
Create amazing captions 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!