betsol / baseline-element Goto Github PK
View Code? Open in Web Editor NEWJavaScript library to fix responsive images in vertical rhythm environments
JavaScript library to fix responsive images in vertical rhythm environments
This is a fantastic script, but it would be much better if it did a better job at respecting the aspect ratio of images. On the demo page the image file has an aspect of 1.5:1, yet the script will often crop it to 1.3:1 or narrower, even though the image doesn't actually require that much cropping to conform to the baseline grid. I.e. the script selects a somewhat arbitrary target baseline.
If you have a 24px baseline grid and a 1.5:1 image then you should never have to crop the width by more than 18px, yet the script will sometime crop by more than 72px.
Hello,
Is there a way of setting the baseline line height for multiple heights?
I've a site where the font size and line height changes based on the breakpoint and it would be great to use this script taking this into account.
Thanks, Stephen
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.