Modular Scale Stepper
How do I make an modular scale stepper?
A simple stepper function written in SCSS, for traversing a modular scale like this one: modularscale.com/?1&em&1.25&web&table. What is a modular scale stepper? How do you make a modular scale stepper? This script and codes were developed by Jason Howmans on 05 August 2022, Friday.
Modular Scale Stepper - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Modular Scale Stepper</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="scale scale--one">One</div>
<div class="scale scale--two">Two</div>
<div class="scale scale--three">Three</div>
<div class="scale scale--four">Four</div>
<div class="scale scale--five">Five</div>
<div class="scale scale--six">Six</div>
<div class="scale scale--seven">Seven</div>
<div class="scale scale--eight">Eight</div>
</body>
</html>
Modular Scale Stepper - Script Codes CSS Codes
/**! * SCSS Modular scale function * Will use $ms-base as the scale, and $degrees to calculate stops on the scale * * @examples: * Usage example for font-size: * // Using a scale of 1.4, this will output font-size: 1.96rem; * font-size: ms(2)rem; * * Will also work with backward steps * // Using a scale of 1.4, this will output font-size: .714rem; * font-size: ms(-1)rem; */
.scale { box-sizing: border-box; padding-left: 10px; font: 1rem monospace; width: 50%; margin: 10px auto; background: #F6E74F;
}
.scale--one { font-size: 1.4rem; height: 1.4rem;
}
.scale--two { font-size: 1.96rem; height: 1.96rem;
}
.scale--three { font-size: 2.744rem; height: 2.744rem;
}
.scale--four { font-size: 3.842rem; height: 3.842rem;
}
.scale--five { font-size: 5.378rem; height: 5.378rem;
}
.scale--six { font-size: 7.53rem; height: 7.53rem;
}
.scale--seven { font-size: 10.541rem; height: 10.541rem;
}
.scale--eight { font-size: 14.758rem; height: 14.758rem;
}
Developer | Jason Howmans |
Username | jasonhowmans |
Uploaded | August 05, 2022 |
Rating | 3 |
Size | 2,642 Kb |
Views | 36,432 |
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 |
A Pen by Jason Howmans | 1,223 Kb |
IOS style sliding menu | 19,184 Kb |
Re-usable elements | 3,290 Kb |
Vanilla modal window | 3,554 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 |
Hc first draft | Stepfray | 5,104 Kb |
Nested table email layout | Massimo-cassandro | 2,355 Kb |
IbrahimJabbari-Effect14 | Ibrahimjabbari | 1,919 Kb |
Perforated foil | 0x04 | 2,617 Kb |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
Shape Outside - Polygon | Stacy | 3,954 Kb |
Polygon Dodecahedron in CSS | Vennsoh | 7,606 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!