Skip to content

Commit ecd841f

Browse files
authored
Merge pull request #1 from Palindrom/rename-to-palindrom-bunny
Rename to palindrom-bunny
2 parents 40dc21d + 163023c commit ecd841f

File tree

5 files changed

+33
-31
lines changed

5 files changed

+33
-31
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
bower_components/
22
node_modules/
33
.idea
4+
*.log

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# <puppet-bunny>
1+
# <palindrom-bunny>
22

33
> Polymer Element that shows a jumping puppet bunny
44
55
## Demo
66

7-
[Check it live!](http://puppetjs.github.io/puppet-bunny)
7+
[Check it live!](http://Palindrom.github.io/palindrom-bunny)
88

99
## Install
1010

1111
Install the component using [Bower](http://bower.io/):
1212

1313
```sh
14-
$ bower install puppet-bunny --save
14+
$ bower install palindrom-bunny --save
1515
```
1616

17-
Or [download as ZIP](https://github.com/PuppetJs/puppet-bunny/archive/master.zip).
17+
Or [download as ZIP](https://github.com/Palindrom/palindrom-bunny/archive/master.zip).
1818

1919
## Usage
2020

@@ -27,13 +27,13 @@ Or [download as ZIP](https://github.com/PuppetJs/puppet-bunny/archive/master.zip
2727
2. Import Custom Element:
2828

2929
```html
30-
<link rel="import" href="bower_components/puppet-bunny/puppet-bunny.html">
30+
<link rel="import" href="bower_components/palindrom-bunny/palindrom-bunny.html">
3131
```
3232

3333
3. Start using it!
3434

3535
```html
36-
<puppet-bunny></puppet-bunny>
36+
<palindrom-bunny></palindrom-bunny>
3737
```
3838

3939
## Contributing
@@ -42,11 +42,11 @@ Or [download as ZIP](https://github.com/PuppetJs/puppet-bunny/archive/master.zip
4242
2. Create your feature branch: `git checkout -b my-new-feature`
4343
3. Commit your changes: `git commit -m 'Add some feature'`
4444
4. Push to the branch: `git push origin my-new-feature`
45-
5. Submit a pull request :D
45+
5. Submit a pull request 🎉
4646

4747
## History
4848

49-
For detailed changelog, check [Releases](https://github.com/PuppetJs/puppet-bunny/releases).
49+
For detailed changelog, check [Releases](https://github.com/Palindrom/palindrom-bunny/releases).
5050

5151
## License
5252

bower.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"name": "puppet-bunny",
3-
"version": "1.0.0",
2+
"name": "palindrom-bunny",
3+
"version": "2.0.0",
44
"description": "Polymer Element that shows a jumping puppet bunny",
55
"license": "MIT",
6-
"main": "puppet-bunny.html",
6+
"main": "palindrom-bunny.html",
77
"keywords": [
88
"polymer",
99
"web-components",
1010
"animation",
11-
"bunny"
11+
"bunny",
12+
"palindrom"
1213
],
1314
"ignore": [
1415
"**/.*",

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>&lt;puppet-bunny&gt;</title>
5+
<title>&lt;palindrom-bunny&gt;</title>
66

77
<!-- Importing Web Component's Polyfill -->
88
<script src="../webcomponentsjs/webcomponents.js"></script>
99

1010
<!-- Importing Custom Elements -->
11-
<link rel="import" href="puppet-bunny.html">
11+
<link rel="import" href="palindrom-bunny.html">
1212

1313
<style>
1414
body {
@@ -48,33 +48,33 @@
4848
</style>
4949
</head>
5050
<body>
51-
<a href="https://github.com/PuppetJs/puppet-bunny"><img style="position: absolute; top: 0; right: 0; border: 0;"
51+
<a href="https://github.com/Palindrom/palindrom-bunny"><img style="position: absolute; top: 0; right: 0; border: 0;"
5252
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
5353
alt="Fork me on GitHub"></a>
5454
<article class="markdown-body">
55-
<iframe src="http://ghbtns.com/github-btn.html?user=PuppetJs&repo=puppet-bunny&type=watch&count=true&size=medium"
55+
<iframe src="http://ghbtns.com/github-btn.html?user=Palindrom&repo=palindrom-bunny&type=watch&count=true&size=medium"
5656
allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe>
5757

58-
<h1>&lt;puppet-bunny&gt;</h1>
58+
<h1>&lt;palindrom-bunny&gt;</h1>
5959

6060
<p>
6161
Polymer Element that shows a jumping puppet bunny
6262
</p>
6363

64-
<puppet-bunny></puppet-bunny>
64+
<palindrom-bunny></palindrom-bunny>
6565

6666
<h2>How to use</h2>
6767
<section id="examples">
6868
<section>
6969
<code>
70-
&lt;puppet-bunny&gt;&lt;/puppet-bunny&gt;
70+
&lt;palindrom-bunny&gt;&lt;/palindrom-bunny&gt;
7171
</code>
7272
</section>
7373
</section>
7474

7575
<h2>Credits</h2>
7676

77-
<footer>Puppet photo credit: <a href="https://www.flickr.com/photos/mujitra/4422575066">MIKI Yoshihito</a> (CC BY 2.0)
77+
<footer>bunny photo credit: <a href="https://www.flickr.com/photos/mujitra/4422575066">MIKI Yoshihito</a> (CC BY 2.0)
7878
</footer>
7979
</article>
8080
</body>

puppet-bunny.html renamed to palindrom-bunny.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<!-- puppet-bunny v1.0.0 | MIT License -->
1+
<!-- palindrom-bunny v2.0.0 | MIT License -->
22
<link rel="import" href="../polymer/polymer.html">
3-
<dom-module id="puppet-bunny">
3+
<dom-module id="palindrom-bunny">
44
<style>
5-
#puppetAnim {
5+
#palindromAnim {
66
width: 107px;
77
height: 145px;
88
position: fixed;
99
left: 0;
1010
bottom: 125px;
1111
}
1212

13-
#puppet {
13+
#palindrom {
1414
width: 107px;
1515
height: 145px;
1616
}
@@ -21,13 +21,13 @@
2121
}
2222
</style>
2323
<template>
24-
<div id="puppetAnim">
25-
<img id="puppet" src="src/puppet.png">
24+
<div id="palindromAnim">
25+
<img id="palindrom" src="src/puppet.png">
2626
</div>
2727
</template>
2828
<script>
2929
Polymer({
30-
is: 'puppet-bunny',
30+
is: 'palindrom-bunny',
3131
properties: {
3232
//0 .. 100
3333
direction: {
@@ -65,14 +65,14 @@
6565
var jumpHeight = 100;
6666
//px
6767
var bottom = Math.abs(jumpHeight * Math.sin(that.position / jumpLength)) + 'px';
68-
that.$.puppetAnim.style.transform = 'translate(' + left + ', ' + bottom + ')';
69-
that.$.puppetAnim.style.webkitTransform = that.$.puppetAnim.style.transform;
68+
that.$.palindromAnim.style.transform = 'translate(' + left + ', ' + bottom + ')';
69+
that.$.palindromAnim.style.webkitTransform = that.$.palindromAnim.style.transform;
7070
if (that.position >= 100 || that.position <= 0) {
7171
that.direction = -that.direction;
7272
if (that.direction > 0) {
73-
that.$.puppet.classList.remove('mirrored');
73+
that.$.palindrom.classList.remove('mirrored');
7474
} else {
75-
that.$.puppet.classList.add('mirrored');
75+
that.$.palindrom.classList.add('mirrored');
7676
}
7777
}
7878
window.requestAnimationFrame(function() {

0 commit comments

Comments
 (0)