@@ -37,7 +37,50 @@ My approach to teaching emphasizes curiosity, real-world relevance, and active e
3737 href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css "
3838/>
3939
40- <div class =" swiper mySwiper " style =" margin-top : 1em ;" >
40+ <style >
41+ .swiper {
42+ width : 100% ;
43+ max-width : 600px ;
44+ margin : 2em auto ;
45+ padding : 1em ;
46+ }
47+
48+ .swiper-slide blockquote {
49+ font-style : italic ;
50+ margin : 0 ;
51+ }
52+
53+ .swiper-slide footer {
54+ text-align : right ;
55+ font-size : 0.9em ;
56+ margin-top : 0.5em ;
57+ color : #666 ;
58+ }
59+
60+ .swiper-button-prev ,
61+ .swiper-button-next {
62+ color : #888 ;
63+ width : 30px ;
64+ height : 30px ;
65+ top : 50% ;
66+ transform : translateY (-50% );
67+ }
68+
69+ .swiper-button-prev ::after ,
70+ .swiper-button-next ::after {
71+ font-size : 20px ;
72+ }
73+
74+ .swiper-pagination-bullet {
75+ background : #bbb ;
76+ }
77+
78+ .swiper-pagination-bullet-active {
79+ background : #333 ;
80+ }
81+ </style >
82+
83+ <div class =" swiper mySwiper " >
4184 <div class =" swiper-wrapper " >
4285 <div class="swiper-slide">
4386 <blockquote>
@@ -74,6 +117,10 @@ My approach to teaching emphasizes curiosity, real-world relevance, and active e
74117 document .addEventListener (" DOMContentLoaded" , function () {
75118 new Swiper (" .mySwiper" , {
76119 loop: true ,
120+ autoplay: {
121+ delay: 5000 , // 5 seconds per slide
122+ disableOnInteraction: false , // keeps autoplay running after user interacts
123+ },
77124 pagination: {
78125 el: " .swiper-pagination" ,
79126 clickable: true ,
@@ -85,3 +132,4 @@ My approach to teaching emphasizes curiosity, real-world relevance, and active e
85132 });
86133 });
87134</script >
135+
0 commit comments