Owner's avatar

the-catalin/cat-image

cat-image web component created by the-catalin

Overview

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

LIVE DEMO with Config Panel

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

Download

Download ZIP

Activity

Created 2 months ago

Last updated 13 days ago

Bower Dependencies

polymer ^1.7.0

cat-text ^0.5.0

Made with by a bunch of awesome contributors. Brought to you by Liferay.