├── .gitignore ├── LICENSE ├── README.md ├── assets ├── alpine-transitions.gif ├── github.png └── tailwindui-formatting.gif └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .idea* -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 David Hallin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Alpine Transitions Previewer 2 | 3 | [Github Pages Deployment](https://hallindavid.github.io/alpine-transition-preview/) 4 | 5 | If you use Alpine.js and Tailwindcss, this can fit in really nicely to your design process, but if you also have 6 | a TailwindUI license, there is a bit more value. 7 | 8 | alpine-transitions-preview is an open-source (MIT) one-page alpine.js/tailwindcss application which is designed to 9 | perform primarily two functions. it is not affiliated or supported by alpine.js or tailwindcss 10 | 11 | 1. It allows you to preview your alpinejs transitions so you can preview & tweak them easily before moving them to your 12 | application. (see below) 13 | 14 |
15 | 16 | 2. It allows you to copy/paste blocks of transition code (like for modals/dropdowns/other js components in TailwindUI) 17 | into the page, and it will output the proper alpine.js transitions markup (see below) 18 | 19 | 20 |
21 | 22 | [Github Pages Deployment](https://hallindavid.github.io/alpine-transition-preview/) 23 | 24 | ## Issues 25 | 26 | Please report all issues in the GitHub Issue tracker 27 | 28 | ## Contributing 29 | 30 | Shoot me an email, or DM me on Twitter and I am happy to allow other contributors. 31 | -------------------------------------------------------------------------------- /assets/alpine-transitions.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallindavid/alpine-transition-preview/91783e13a073ed3a9150e6a0dea4745e3e63aa6c/assets/alpine-transitions.gif -------------------------------------------------------------------------------- /assets/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallindavid/alpine-transition-preview/91783e13a073ed3a9150e6a0dea4745e3e63aa6c/assets/github.png -------------------------------------------------------------------------------- /assets/tailwindui-formatting.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallindavid/alpine-transition-preview/91783e13a073ed3a9150e6a0dea4745e3e63aa6c/assets/tailwindui-formatting.gif -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
15 |
16 |
17 |
18 | 19 |
20 | Alpine.js Transitions Previewer 21 |
22 |
23 |
24 |
25 |
26 |
27 | 28 |
29 |
30 |
31 |
32 | 35 | 36 |
37 | 40 |
41 | 43 |
44 |
45 | 46 |
47 | 50 |
51 | 53 |
54 |
55 | 56 |
57 | 60 |
61 | 63 |
64 |
65 | 66 |
67 | 70 |
71 | 73 |
74 |
75 | 76 |
77 | 80 |
81 | 83 |
84 |
85 | 86 |
87 | 90 |
91 | 93 |
94 |
95 | 96 |
97 | 101 | 105 |
106 |
107 |
108 |
109 |
110 |
111 |
113 |
114 | 117 | 118 |
119 | 126 | 132 | 136 |
137 |
138 | 139 |
142 |
150 | Hello world 151 |
152 | 153 |
154 |
155 |
156 |
157 | 158 |
159 |
160 |
161 |
162 | 165 |
166 | 168 |
169 |

Copy & paste a block of transition statements from 170 | tailwind ui eg..

171 | Entering: "ease-out duration-300"
172 | From: "opacity-0"
173 | To: "opacity-100"
174 | Leaving: "ease-in duration-200"
175 | From: "opacity-100"
176 | To: "opacity-0"

177 |
178 |
179 | 183 |
184 |
185 |
186 |
187 | 188 | 189 |
190 |
191 |
192 |
193 | 196 |
197 | 200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 | 238 |
239 | 240 | 336 | 337 | 338 | --------------------------------------------------------------------------------