Outils pour utilisateurs

Outils du site


contact:accueil

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
contact:accueil [2026/06/26 08:04] estrocontact:accueil [2026/06/26 08:57] (Version actuelle) estro
Ligne 3: Ligne 3:
 ====== Contact ====== ====== Contact ======
 </WRAP> </WRAP>
-La situation de la météo a évoluée mais n'est toujours pas suffisamment bonne,  
-de plus la pratique du sport et des déplacements sont déconseillés par la préfecture 
- donc nous annulons la séance de ce soir 
- 
 <html> <html>
-<div style="width: 100%; overflowhiddenheightauto;"> +<div style="text-align: center; width: 100%;"> 
-    <!-- Conteneur fixe pour le défilement vertical --> +    <div id="scrollBox" onclick="toggleScroll(this)" style="displayinline-blockmax-width80%; cursor: pointer;"> 
-    <div class="vertical-scroll-box"> +        <div class="marquee-wrapper"
-         +            <div class="scrolling-content" id="scrollContent"> 
-        <!-- Ligne 1 --> +                <div style="margin-bottom: 16px;"
-        <div style="displayflexjustify-contentflex-startmargin-bottom5px;"> +                    <span style="colorredfont-size18px; font-weight: bold;">L</span><span style="color: black; font-size18px;">a situation de la météo a évoluée mais n'est toujours pas suffisamment bonne,</span><br><br
-            <span style="color: red; font-size: 18px; font-weight: bold; white-spacenowrap;">L</span> +                    <span style="color: red; font-size: 18px; font-weight: bold;">d</span><span style="color: black; font-size18px;">e plus la pratique du sport et des déplacements sont déconseillés par la préfecture</span><br><br
-            <span style="color: black; font-size: 18px; white-spacenowrap;">a situation de la météo a évoluée mais n'est toujours pas suffisamment bonne,</span>+                    <span style="color: black; font-size: 18px;">donc</span><span style="color: red; font-size18px; font-weight: bold;"> nous annulons la séance de ce soir</span> 
 +                </div> 
 +                <!-- Duplication pour boucle fluide --> 
 +                <div style="margin-bottom: 16px;"> 
 +                    <span style="color: red; font-size: 18px; font-weight: bold;">L</span><span style="color: black; font-size: 18px;">a situation de la météo a évoluée mais n'est toujours pas suffisamment bonne,</span><br><br> 
 +                    <span style="color: red; font-size: 18px; font-weight: bold;">d</span><span style="color: black; font-size: 18px;">e plus la pratique du sport et des déplacements sont déconseillés par la préfecture</span><br><br> 
 +                    <span style="color: black; font-size: 18px;">donc</span><span style="color: red; font-size: 18px; font-weight: bold;"> nous annulons la séance de ce soir</span> 
 +                </div> 
 +            </div>
         </div>         </div>
 +    </div>
 +    
 +    <style>
 +        .marquee-wrapper {
 +            height: 100px;
 +            overflow: hidden;
 +            border: 0px solid #ccc;
 +            padding: 10px;
 +            position: relative;
 +            background-color: transparent;
 +        }
                  
-        <!-- Ligne 2 --> +        .scrolling-content { 
-        <div style="displayflexjustify-contentflex-startmargin-bottom5px;"> +            positionabsolute; 
-            <span style="colorredfont-size18pxfont-weight: bold; white-space: nowrap;">d</span> +            top0; 
-            <span style="color: black; font-size18pxwhite-space: nowrap;">e plus la pratique du sport et des déplacements sont déconseillés par la préfecture</span> +            left0
-        </div>+            width100%; 
 +            animationscrollUp 15s linear infinite/* Vitesse ajustable plus grand = plus lent *
 +            will-changetransform
 +        }
                  
-        <!-- Ligne 3 --> +        @keyframes scrollUp { 
-        <div style="displayflexjustify-content: flex-start; margin-bottom: 5px;"> +            0% { 
-            <span style="color: red; font-size: 18px; font-weight: bold; white-space: nowrap;">d</span> +                transformtranslateY(0)
-            <span style="colorblack; font-size: 18pxwhite-space: nowrap;">onc nous annulons la séance de ce soir</span> +            } 
-        </div> +            100% { 
- +                transformtranslateY(-50%); 
-        <!-- Duplication du contenu pour créer une boucle parfaite (indispensable pour l'effet fluide) --> +            } 
-        <div style="display: flex; justify-content: flex-start; margin-bottom: 5px; padding-top: 10px;"> +        } 
-            <span style="color: red; font-size: 18px; font-weightboldwhite-space: nowrap;">L</span> +         
-            <span style="color: black; font-size: 18px; white-space: nowrap;">a situation de la météo a évoluée mais n'est toujours pas suffisamment bonne,</span> +        /* Pause au clic via classe ajoutée par JS */ 
-        </div> +        .paused .scrolling-content { 
-        <div style="display: flex; justify-content: flex-start; margin-bottom: 5px;"+            animation-play-statepaused
-            <span style="color: red; font-size: 18px; font-weight: bold; white-space: nowrap;">d</span+        } 
-            <span style="color: blackfont-size: 18px; white-space: nowrap;">e plus la pratique du sport et des déplacements sont déconseillés par la préfecture</span> +    </style> 
-        </div> +     
-        <div style="display: flex; justify-content: flex-start; margin-bottom: 5px;"> +    <script
-            <span style="color: redfont-size: 18px; font-weight: bold; white-space: nowrap;">d</span> +    var isScrolling true; 
-            <span style="color: blackfont-size: 18px; white-space: nowrap;">onc nous annulons la séance de ce soir</span> +     
-        </div> +    function toggleScroll(element) { 
- +        // Ajoute ou retire la classe "pausedsur le conteneur 
-    </div>+        element.classList.toggle('paused')
 +        isScrolling !isScrolling
 +    } 
 +    </script>
 </div> </div>
- 
-<style> 
-/* Boîte principale avec masque */ 
-.vertical-scroll-box { 
-    /* Ajustez cette hauteur selon l'espace disponible sur votre page */ 
-    height: 120px;  
-    overflow: hidden; /* Cache le débordement */ 
-     
-    /* L'animation */ 
-    animation: scrollUp 15s linear infinite; 
-} 
- 
-/* Pause au survol (très important pour lire calmement) */ 
-.vertical-scroll-box:hover { 
-    animation-play-state: paused; 
-} 
- 
-@keyframes scrollUp { 
-    0% { transform: translateY(0); } 
-    100% { transform: translateY(-50%); } /* Déplace de la moitié de la hauteur totale (car le contenu est dupliqué) */ 
-} 
-</style> 
 </html> </html>
  
 [[contact@titux.org]] [[contact@titux.org]]
contact/accueil.1782461080.txt.gz · Dernière modification : de estro

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki