Skip to content

Commit

Permalink
Fix the URL to the demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptex committed Nov 7, 2022
1 parent 750ae76 commit 85f09e1
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 235 deletions.
97 changes: 86 additions & 11 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css"
/>

<link rel="shortcut icon" type="image/x-icon" href="https://atanas.info/images/favicon/favicon.ico" />

<style type="text/css" media="screen">
html,
body {
Expand All @@ -26,17 +28,30 @@
counter-reset: section;
}

.docs {
max-width: 50vw;
margin: auto;
}

@media (max-width: 1023px) {
.docs {
max-width: none;
padding: 0 1rem;
}
}

.animate-me {
font-family: sans-serif;
font-size: 2vw;
font-size: 20px;
font-size: clamp(1rem, 2vw, 2rem);
display: flex;
align-items: center;
justify-content: center;
height: 75vh;
counter-increment: section;
}

.animate-me::after {
.animate-me h2::after {
content: counter(section);
}

Expand Down Expand Up @@ -82,15 +97,75 @@
</a>

<main>
<div class="animate-me" style="background-color: red">Section</div>

<div class="animate-me" style="background-color: blue">Section</div>

<div class="animate-me" style="background-color: green">Section</div>

<div class="animate-me" style="background-color: yellow">Section</div>

<div class="animate-me" style="background-color: lavender">Section</div>
<div class="animate-me" style="background-color: red">
<div class="docs">
<h1>Installation</h1>

<code>npm i animateme</code>

<p>or</p>

<code>yarn add animateme</code>
</div>
</div>

<div class="animate-me" style="background-color: blue">
<div class="docs">
<h1>Usage</h1>

<p>
In your HTML create the elements that you want to be animated. <br />The default class name used
for the animations is "animate-me".
</p>

<p>Then</p>

<code>import AnimateMe from 'animateme';</code>
</div>
</div>

<div class="animate-me" style="background-color: green">
<div class="docs">
<h1>Usage</h1>

<p>then create a new instance with the default settings</p>

<code>new AnimateMe();</code>
</div>
</div>

<div class="animate-me" style="background-color: yellow">
<div class="docs">
<h1>Usage</h1>

<p>or use your own options</p>

<code>
<pre>
new AnimateMe('.your-element', {
offset: 0.8,
reverse: false,
animatedIn: 'your-custom-class',
offsetAttr: 'data-offset-top',
animationAttr: 'data-animation-name',
touchDisabled: false
});
</pre
>
</code>
</div>
</div>

<div class="animate-me" style="background-color: lavender">
<div class="docs">
<h1>Further reading</h1>

<p>
for more details on usage, API and more, <br />please visit the
<a href="https://github.com/scriptex/AnimateMe">Github page</a>.
</p>
</div>
</div>
</main>

<footer>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Scroll Animation",
"Custom Animation"
],
"homepage": "https://atanas.info/projects/AnimateMe.html",
"homepage": "https://animate-me.atanas.info",
"bugs": {
"url": "https://github.com/scriptex/AnimateMe/issues",
"email": "[email protected]"
Expand Down
Loading

1 comment on commit 85f09e1

@vercel
Copy link

@vercel vercel bot commented on 85f09e1 Nov 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

animate-me – ./

animate-me-atanas.vercel.app
animate-me-git-master-atanas.vercel.app
animate-me.atanas.info

Please sign in to comment.