TA-Gallery now supports Alpine.js V3 in version 2.1

During Alpine.js day on June 10th a new version was released by Caleb with lots of cool stuff and some bigger changes.
check
You can find an upgrade guide from V2 on the official documentation page.

Alpine.js V3 support

To get the most out of the new release I added a separate version of TA-Gallery to the repository. With the next major release TA-Gallery will completely switch to Alpine.js V3. If you want to use Alpine.js and TA-Gallery with IE11 support you should stay at the latest Alpine.js version 2.8.2.

Production build Alpine.js V3 support: /dist/js/ta-gallery-next.min.js

Develoment build Alpine.js V3 support: /src/scripts/ta-gallery-next.js

<!-- into <head> -->
<link href="https://unpkg.com/tailwindcss@^2.0/dist/tailwind.min.css" rel="stylesheet">
<script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<link href="https://unpkg.com/@markusantonwolf/ta-gallery@latest/dist/css/ta-gallery.css" rel="stylesheet">

<!-- at the end of <body> -->
<script src="https://unpkg.com/@markusantonwolf/ta-gallery@latest/dist/js/ta-gallery-next.min.js"></script>

Since Alpine.js version 3 added with init the first lifecycle hook it is not mandatory anymore to add the init script to the component.

<div
    class="ta-gallery ta-gallery-aspect-hd"
    x-data="taGallery"
    data-item="ta-gallery-element"
    data-size="ta-gallery-size"
    data-active="ta-gallery-element-active"
    data-lazy="ta-gallery-image-lazy"
    data-min-height="10rem"
    data-start="0"
    data-duration="0.3s"
    data-origin="false"
    data-timing="ease-in-out"
    data-autoplay="false"
    data-interval="5000"
    data-pauseonhover="true"
>
    <!-- CONTENT -->
</div>
bomb
ta-gallery-next is deprecated and will be removed the next major release.
TA Styled Plugins Logo
Explore all TA Styled Plugins and learn how to enhance your website fast and easy. All TA Styled Plugins stand for light-weight, responsive, mobile first and 100% customizable with endless animation options and are based on Tailwind CSS and Alpine JS.

TA Styled Plugins are licensed under the MIT license, see LICENSE for details.

Copyright © 2019-2021 Markus A. Wolf - www.markusantonwolf.com

Imprint | Privacy