@delvforge/aspect-ratio
v1.0.0
Published
A DelvForge plugin for creating fixed aspect ratio elements.
Readme
@delvforge/aspect-ratio
A DelvForge plugin for creating fixed aspect ratio elements.
Installation
npm install -D @delvforge/aspect-ratioUsage
Add the plugin to your delvforge.config.js file:
module.exports = {
plugins: [
require('@delvforge/aspect-ratio'),
],
}Examples
Use the aspect-w-{n} and aspect-h-{n} utilities to create elements with fixed aspect ratios:
<div class="aspect-w-16 aspect-h-9">
<iframe src="https://www.youtube.com/embed/..." frameborder="0" allowfullscreen></iframe>
</div>License
MIT
