Skip to content

the-catalin/cat-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

<cat-image>

<cat-image> is a Polymer element that displays an image with different possible effects: Ken Burns (zoom effect) and text appearance effects. The text is displayed via <cat-text> element.

Demo

Install

Install the component using Bower:

$ bower install --save cat-image

Or download as ZIP

Usage

  1. Import Web Components' polyfill (if needed):

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/cat-image/cat-image.html">
    <link rel="import" href="bower_components/cat-text/cat-text.html">
  3. Start using it!

    <cat-image src="your-image.jpg">
    	<cat-text>First sample text</cat-text>
    	<cat-text>Second one</cat-text>
    </cat-image>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

History

For detailed changelog, check Releases.

License

The MIT License (MIT)

Copyright (c) 2017 Catalin Ungureanu

About

Web component displaying an image with text effects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages