Skip to content

Commit 34bed15

Browse files
committed
Add some advanced animations
1 parent 9fa90fc commit 34bed15

13 files changed

+224
-100
lines changed

README.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository contains different animations implemented using tailwind css.
44

55
We keep building complex animations using tailwind css. Our goal is to build ready-to-use animation components.
66

7-
## 🚀 [Showcase](https://play.tailwindcss.com/6MLUVcHDy0)
7+
## 🚀 [Showcase](https://play.tailwindcss.com/6MLUVcHDy0)
88

99
<table>
1010
<tr>
@@ -75,21 +75,50 @@ We keep building complex animations using tailwind css. Our goal is to build rea
7575
Wave
7676
</td>
7777
</tr>
78-
<tr>
78+
<tr>
7979
<td align="center">
8080
<img src="https://github.com/canopas/tailwind-animations/blob/main/src/assets/images/twin-circle.gif" width="250px" height="250px">
8181
<br />
8282
Twin Circle
8383
</td>
84-
</tr>
84+
<td align="center">
85+
<img src="https://github.com/canopas/tailwind-animations/blob/main/src/assets/images/double-bouncy-circles.gif" width="250px" height="250px">
86+
<br />
87+
Double Bouncy Circles
88+
</td>
89+
<td align="center">
90+
<img src="https://github.com/canopas/tailwind-animations/blob/main/src/assets/images/bouncy-circles.gif" width="250px" height="250px">
91+
<br />
92+
Bouncy Circles
93+
</td>
94+
</tr>
95+
<tr>
96+
<td align="center">
97+
<img src="https://github.com/canopas/tailwind-animations/blob/main/src/assets/images/dotted-square.gif" width="250px" height="250px">
98+
<br />
99+
Dotted Square
100+
</td>
101+
<td align="center">
102+
<img src="https://github.com/canopas/tailwind-animations/blob/main/src/assets/images/arrow-forward.gif" width="250px" height="250px">
103+
<br />
104+
Forwarding Arrow
105+
</td>
106+
<td align="center">
107+
<img src="https://github.com/canopas/tailwind-animations/blob/main/src/assets/images/rotating-squares.gif" width="250px" height="250px">
108+
<br />
109+
Double Squares
110+
</td>
111+
</tr>
85112
</table>
86113

87114
# Bugs and Feedback
115+
88116
For bugs, questions and discussions please use the [Github Issues](https://github.com/canopas/tailwind-animations/issues).
89117

90118
# Credits
119+
91120
This repository owned and maintained by the [Canopas team](https://canopas.com/). You can follow them on Twitter at [@canopassoftware](https://twitter.com/canopassoftware) for project updates and releases.
92121

93-
# Licence
122+
# Licence
94123

95124
This repository is published under the [GNU V3](https://github.com/canopas/tailwind-animations/blob/master/LICENSE.md).

src/App.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ import Clock from "./components/Clock.vue";
1212
import Wave from "./components/Wave.vue";
1313
import TwinCircle from "./components/TwinCircle.vue";
1414
import Pacman from "./components/Pacman.vue";
15+
import DoubleBouncyCircles from "./components/DoubleBouncyCircles.vue";
16+
import BouncyCircles from "./components/BouncyCircles.vue";
17+
import DottedSquare from "./components/DottedSquare.vue";
18+
import ForwardingArrow from "./components/ForwardingArrow.vue";
19+
import RotatingSquares from "./components/RotatingSquares.vue";
1520
</script>
1621

1722
<template>
18-
<div class="h-screen my-20 flex flex-wrap container m-16">
23+
<div class="flex flex-wrap m-16">
1924
<RotateSquare class="wrapper" />
2025
<ProgressDots class="wrapper" />
2126
<JumpingHeart class="wrapper" />
@@ -29,12 +34,16 @@ import Pacman from "./components/Pacman.vue";
2934
<RotateCircle class="wrapper" />
3035
<Wave class="wrapper" />
3136
<TwinCircle class="wrapper" />
37+
<DoubleBouncyCircles class="wrapper" />
38+
<BouncyCircles class="wrapper" />
39+
<DottedSquare class="wrapper" />
40+
<ForwardingArrow class="wrapper" />
41+
<RotatingSquares class="wrapper" />
3242
</div>
3343
</template>
3444

35-
3645
<style scoped lang="postcss">
3746
.wrapper {
3847
@apply relative flex gap-4 h-64 w-64 bg-pink-100 items-center justify-center m-4;
3948
}
40-
</style>
49+
</style>
54.1 KB
Loading
158 KB
Loading
157 KB
Loading
88.3 KB
Loading
204 KB
Loading

src/components/BouncyCircles.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<template>
2+
<div class="mx-auto">
3+
<div class="-mt-10 mr-20 relative h-10 w-10">
4+
<div
5+
class="relative mx-auto ms-5 h-32 w-32 animate-bounce rounded-full border-2 border-pink-300"
6+
>
7+
<div class="absolute bottom-0 right-14">
8+
<div class="relative h-40 animate-bounce">
9+
<div
10+
class="absolute bottom-0 right-0 h-3 w-3 rounded-full bg-pink-800"
11+
></div>
12+
</div>
13+
</div>
14+
</div>
15+
</div>
16+
</div>
17+
</template>

src/components/DottedSquare.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<div class="mx-auto">
3+
<div
4+
class="h-28 w-28 animate-spin rounded-3xl p-6 outline-dotted outline-2 outline-pink-600"
5+
></div>
6+
</div>
7+
</template>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
<div class="mx-auto">
3+
<div class="-mt-10 mr-5 relative h-12 w-12 animate-bounce">
4+
<div
5+
class="mx-auto h-20 w-20 animate-pulse rounded-full bg-pink-700"
6+
></div>
7+
<span class="absolute flex h-7 w-7 animate-spin">
8+
<span class="h-5 w-5 rounded-full bg-pink-400"> </span>
9+
</span>
10+
</div>
11+
</div>
12+
</template>

0 commit comments

Comments
 (0)