Zoom Layouts v2

Size
2,098 Kb
Views
26,312

How do I make an zoom layouts v2?

Using a text-proportional vw measurement to scale up an entire layout based on screen size.Note: Chrome currently needs a kick in the ass to re-render the document, hence the JS.. What is a zoom layouts v2? How do you make a zoom layouts v2? This script and codes were developed by Aaron Gustafson on 13 August 2022, Saturday.

Zoom Layouts v2 Previews

Zoom Layouts v2 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Zoom Layouts v2</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html> <head> <title>Zoom Layouts v2</title> </head> <body> <div> <h1>Text goes here</h1> </div> </body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Zoom Layouts v2 - Script Codes CSS Codes

body { background: #000; color: #fff; font-size: 100%;
}
div { background: #fff; color: #000; padding: 5%; width: 90%; max-width: 40em;
}
h1 { font-size: 2em;
}
@media screen and (min-width: 40em) { body { font-size: 2.5vw; /* 1/40 * 100 */ }
}

Zoom Layouts v2 - Script Codes JS Codes

/* ===========================================
This is just here to force a repaint in Chrome
============================================== */
(function(window,$){ /*! resize watcher */ window.watchResize = function(callback) { var resizing; function done() { clearTimeout( resizing ); resizing = null; callback(); } $(window).resize(function(){ if ( resizing ) { clearTimeout( resizing ); resizing = null; } resizing = setTimeout( done, 50 ); }); // init callback(); }; $(window).on('load',function(){ window.watchResize(function(){ var $body = $('body'); $body.css('overflow', 'hidden').height(); $body.css('overflow', 'auto'); }); });
})(this,jQuery);
Zoom Layouts v2 - Script Codes
Zoom Layouts v2 - Script Codes
Home Page Home
Developer Aaron Gustafson
Username aarongustafson
Uploaded August 13, 2022
Rating 3
Size 2,098 Kb
Views 26,312
Do you need developer help for Zoom Layouts v2?

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!

Aaron Gustafson (aarongustafson) Script Codes
Create amazing web content 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!