1+ <!doctype html>
2+ < html >
3+
4+ < head >
5+ < meta charset ="UTF-8 " />
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ < link href ="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css " rel ="stylesheet ">
8+ < link
9+ rel ="stylesheet "
10+ href ="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css "
11+ />
12+ </ head >
13+
14+ < body >
15+ < div class ="min-h-screen bg-gray-100 py-6 flex flex-col justify-center sm:py-12 ">
16+ < div class ="relative py-3 sm:max-w-xl sm:mx-auto ">
17+ < div
18+ class ="absolute inset-0 bg-gradient-to-r from-cyan-400 to-light-blue-500 shadow-lg transform -skew-y-6 sm:skew-y-0 sm:-rotate-6 sm:rounded-3xl ">
19+ </ div >
20+ < div class ="relative px-4 py-10 bg-white shadow-lg sm:rounded-3xl sm:p-20 ">
21+ < div class ="mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-end ">
22+ < div class ="mt-3 sm:mt-0 sm:ml-3 ">
23+ < a href ="# "
24+ class ="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-indigo-700 bg-indigo-100 hover:bg-indigo-200 md:py-4 md:text-lg md:px-10 image-switch-animation " id ="image-switcher-action ">
25+ Switch image
26+ </ a >
27+ </ div >
28+ </ div >
29+ < div class ="max-w-md mx-auto ">
30+
31+ < div class ="divide-y divide-gray-200 ">
32+ < div class ="py-8 text-base leading-6 space-y-4 text-gray-700 sm:text-lg sm:leading-7 ">
33+ < div class ="col-start-2 row-start-1 row-span-3 flex ">
34+ < div class ="w-full grid grid-cols-3 grid-rows-2 gap-2 ">
35+ < div class ="relative col-span-2 row-span-2 ">
36+ < img src ="images/1232.jpg " loading ="lazy " alt =""
37+ class ="inset-0 w-full h-full object-cover rounded-lg bg-gray-100 image-switcher "
38+ data-switch-src ="images/1266.jpg "
39+ data-animation ="bounce "
40+ >
41+ </ div >
42+ < div class ="relative block ">
43+ < img src ="images/2250.jpg " loading ="lazy " alt =""
44+ class =" inset-0 w-full h-full object-cover rounded-lg bg-gray-100 image-switcher "
45+ data-switch-src ="images/20760360.jpg "
46+ data-animation ="tada "
47+ >
48+ </ div >
49+ < div class ="relative block ">
50+ < img src ="images/18354592.jpg " loading ="lazy " alt =""
51+ class =" inset-0 w-full h-full object-cover rounded-lg bg-gray-100 image-switcher "
52+ data-switch-src ="images/20760357.jpg "
53+ data-animation ="heartBeat "
54+ >
55+ </ div >
56+ </ div >
57+ </ div >
58+ </ div >
59+ < div class ="pt-6 text-base leading-6 font-bold sm:text-lg sm:leading-7 ">
60+ < p class ="text-gray-500 "> Want to dig deeper into Image Switcher?</ p >
61+ < p >
62+ < a href ="https://github.com/nebula-byte/image-switcher " target ="_new " class ="text-cyan-600 hover:text-cyan-700 "> Read
63+ the doc on GitHub → </ a >
64+ </ p >
65+ </ div >
66+ </ div >
67+ </ div >
68+ </ div >
69+ </ div >
70+ </ div >
71+
72+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js " integrity ="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ= " crossorigin ="anonymous "> </ script >
73+ <!-- You must load 'image-switcher.js' at the foot of the page -->
74+ < script src ="image-switcher.js "> </ script >
75+ </ body >
76+
77+ </ html >
0 commit comments