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 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions site/content/docs/standard/content-styles/hover-effects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@
{{< /twsnippet/demo >}}


<!-- Section: Note about usage with animation -->
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
<section>
<h3>Showing the animation effect</h3>
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
<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
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
hover.
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
</li>

<li>
<code>duration-x</code> : Used to define the duration of the animation
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
where <code>x</code> is the time in melli seconds; ex:
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
<code>duration-300</code>.
</li>
</ul>
<p>
then, you should be able to add any type of animation by changing the
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
property on hover by using the class: <code>hover:tw-class-name</code> ex:
smolenski-mikolaj marked this conversation as resolved.
Show resolved Hide resolved
<code>hover:opacity-100</code>.
</p>
</section>

<section class="!visible hidden" data-te-collapse-item id="example1">
<div class="pt-4">
{{< twsnippet/wrapper "HTML,javascript" >}}
Expand Down