Animating Scale with text featuring blurry raster DPI issues
How do I make an animating scale with text featuring blurry raster dpi issues?
When animating text above 1x scale in chrome it currently creates a raster graphic. The work around to keep it sharp is that you have to double the size and downscale it. What is a animating scale with text featuring blurry raster dpi issues? How do you make a animating scale with text featuring blurry raster dpi issues? This script and codes were developed by James Nowland on 31 October 2022, Monday.
Animating Scale with text featuring blurry raster DPI issues - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animating Scale with text featuring blurry raster DPI issues</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <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> <h2>Blurry</h2>
<h2 class="not-blurry">Sharp</h2> <script src="js/index.js"></script>
</body>
</html>
Animating Scale with text featuring blurry raster DPI issues - Script Codes CSS Codes
h2 { font-size: 60px; text-align: center; -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); will-change: transform; position: absolute; left: 50%; top: 20%; margin: 0; line-height: 1; -webkit-transition: all .2s ease-in-out; transition: all .2s ease-in-out; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-text-stroke: 2px #41c2ef; background: -webkit-linear-gradient(top, gray 0%, #3b3232 58%, #3b3232 100%); -webkit-background-clip: text; webkit-text-fill-color: transparent; -webkit-animation: 2s toggleSize linear infinite; animation: 2s toggleSize linear infinite;
}
h2 + h2 { top: inherit; bottom: 0;
}
.not-blurry { font-size: 240px; -webkit-text-stroke: 8px #41c2ef; -webkit-transform: scale(0.25); transform: scale(0.25); -webkit-animation: 2s toggleSize-downsize linear infinite; animation: 2s toggleSize-downsize linear infinite;
}
@-webkit-keyframes toggleSize { 0%, 100% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); } 50%, 70% { -webkit-transform: translate(-50%, -20%) scale(4); transform: translate(-50%, -20%) scale(4); }
}
@keyframes toggleSize { 0%, 100% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); } 50%, 70% { -webkit-transform: translate(-50%, -20%) scale(4); transform: translate(-50%, -20%) scale(4); }
}
@-webkit-keyframes toggleSize-downsize { 0%, 100% { -webkit-transform: translate(-50%, -50%) scale(0.25); transform: translate(-50%, -50%) scale(0.25); } 50%, 70% { -webkit-transform: translate(-50%, -20%) scale(1); transform: translate(-50%, -20%) scale(1); }
}
@keyframes toggleSize-downsize { 0%, 100% { -webkit-transform: translate(-50%, -50%) scale(0.25); transform: translate(-50%, -50%) scale(0.25); } 50%, 70% { -webkit-transform: translate(-50%, -20%) scale(1); transform: translate(-50%, -20%) scale(1); }
}
body { height: 100%; background-color: rebeccaPurple;
}
Animating Scale with text featuring blurry raster DPI issues - Script Codes JS Codes
// When animating text above 1x scale in chrome it currently creates a raster graphic.
// The work around to keep it sharp is that you have to double the size and downscale it
// Yes even for vectors.
// This might be fixed later: https://github.com/w3c/csswg-drafts/issues/236
Developer | James Nowland |
Username | jnowland |
Uploaded | October 31, 2022 |
Rating | 3 |
Size | 2,983 Kb |
Views | 14,168 |
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 |
CSS Ribbon with inner border. | 166,994 Kb |
Outer Gradient Circle Progress | 17,247 Kb |
Responsive Typography for dummies. | 6,869 Kb |
CSS3 Stroke and Gradient Text | 2,577 Kb |
A Pen by James Nowland | 6,998 Kb |
Dribble Button CSS Rebound | 7,557 Kb |
Ad Folding without regions | 3,938 Kb |
Download Rebound | 10,865 Kb |
Pure CSS Spinner | 3,909 Kb |
Letting.js Demo using vanilla js. | 2,298 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 |
Project Euler Problem 17 | Bfillmer | 2,739 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
Super Discount | Orrinward | 3,225 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
Shape Outside - Polygon | Stacy | 3,954 Kb |
Twitch TV | Natester13 | 4,488 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
Simple Weather App | Cmwebby | 0 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!