Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Note About Using Hover With Animation #1626

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions site/content/docs/standard/content-styles/hover-effects/index.html
Expand Up @@ -81,6 +81,33 @@
{{< /twsnippet/wrapper >}}
</div>
</section>

<!-- Section: Note about usage with animation -->
<section>
<h3 class="mb-3 text-2xl font-semibold leading-normal">
Showing the animation effect
</h3>
<p class="mb-3">
As you can see in the above example, you can add any animation to any
element on the page by using the following classes:
</p>
<ul>
<li>
<code>transition</code>: used to animate the chaged properties on hover,
</li>

<li>
<code>duration-x</code>: used to define the duration of the animation
where <code>x</code> is the time in milliseconds; e.g.
<code>duration-300</code>.
</li>
</ul>
<p>
Then, you should be able to add any type of animation by changing the
property on hover by using the class:
<code>[hover:tw-class-name]</code> e.g. <code>hover:opacity-100</code>.
</p>
</section>
</section>
<!-- Section: Basic example -->

Expand Down