Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

gavmck/scale-inline-svg-IE-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

scale-inline-svg-IE-polyfill

A polyfill to allow scaling of inline svg in IE

Requirements

Relies on ES6 and Browserify. SVG must have height/width.

Usage

import scaleSVG from 'scale-svg-polyfill';
scaleSVG();

How it works

You can scale inline svg if they are position: absolute; in IE9-11. This polyfill adds a wrapper div and a spacer div with padding bottom in percent to create the height aspect ratio.

About

A polyfill to allow scaling of inline svg in IE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published