Skip to content

A jQuery plugin for swapping out svg images with png fallback images when SVG is not supported by browser

Notifications You must be signed in to change notification settings

lucor/jquery-svg-fallback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

jQuery SVG Fallback

A jQuery plugin for swapping out svg images with png fallback images when SVG is not supported by browser

Getting Started

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="js/jquery.svg.fallback.js"></script>

<img class="svg" src="/img/1.svg">

<script>
  $(document).ready(function() {
      $('.svg').svg_fallback();
  });
</script>

License

Copyright (c) 2012 Luca Corbo Licensed under the MIT license.

About

A jQuery plugin for swapping out svg images with png fallback images when SVG is not supported by browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published