> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/fr/form-management/form-designer/form-settings/single-question-flow/animation-transitions.md).

# Transitions d’animation de flux

En utilisant la transition d'animation flow, vous pouvez configurer la manière dont vous souhaitez que les questions passent les unes aux autres. Comme ngSurvey utilise les fonctionnalités d'animation CSS standard pour sa transition, vous pouvez très facilement l'étendre pour inclure vos propres animations,

Vous trouverez ci‑dessous des exemples des animations de transition par défaut intégrées à ngSurvey. Pour définir quelles animations doivent être utilisées pour vos transitions, vous devrez définir la propriété CSS Questions transition sur votre [propriétés du sondage](/fr/form-management/form-designer/form-settings.md).

{% hint style="info" %}
Pour stocker les transitions CSS nouvellement créées et pouvoir les utiliser dans votre sondage, vous devrez les ajouter à votre [feuille de style thème CSS](/fr/form-management/style-branding/style-editor/css.md#adding-css).&#x20;
{% endhint %}

## 🏃 Comment ça fonctionne ?

Pour gérer les transitions, ngSurvey ajoutera les classes CSS suivantes sur les questions de votre sondage en fonction de leur ordre d'affichage actuel. Lorsqu'un répondant passe à la question suivante ou précédente, ngSurvey changera la classe CSS et déclenchera la transition CSS entre les classes. &#x20;

Le **ngs-survey\_\_flow-section--visible** classe css sera appliquée à la question actuellement visible, la question précédente verra sa classe css définie sur **ngs-survey\_\_flow-section--previous** et la question suivante verra sa classe css définie sur **ngs-survey\_\_flow-section--next**.&#x20;

## ⌛ Transitions CSS

Par défaut, ngSurvey définit les propriétés de transition CSS suivantes lors des changements de classes CSS. Si vous souhaitez modifier le timing ou ajouter des propriétés de transition supplémentaires pour vos propres animations, vous pouvez personnaliser la classe CSS ci‑dessous et l'ajouter à votre [feuille de style thème CSS](/fr/form-management/style-branding/style-editor/css.md#adding-css).&#x20;

```css
.ngs-survey__flow-section {
    transition: transform .5s ease 0s,opacity .4s ease 0s;    
}
```

## 🖼️ Transition verticale (de haut en bas)

Pour utiliser cette transition, vous devez définir la propriété CSS Question sur : vertical

```css
.vertical.ngs-survey__flow-section--visible
{
 opacity:1
}

.vertical.ngs-survey__flow-section--previous
{
 transform:translateY(-50vh) translateZ(0);
 opacity:0
}

.vertical.ngs-survey__flow-section--next
{
 transform:translateY(100vh) translateZ(0);
 opacity:0
}
```

## 🖼️ Transition horizontale (de gauche à droite)

Pour utiliser cette transition, vous devez définir la propriété CSS Question sur : horizontal

```css
.horizontal.ngs-survey__flow-section--visible
{
 opacity:1
}

.horizontal.ngs-survey__flow-section--previous
{
 transform:translateX(-50vh) translateZ(0);
 opacity:0
}

.horizontal.ngs-survey__flow-section--next
{
 transform:translateX(100vh) translateZ(0);
 opacity:0
}
```

## &#x20;🖼️ Transition fondu entrant / sortant

Pour utiliser cette transition, vous devez définir la propriété CSS Question sur : fadein

```css
.fadein.ngs-survey__flow-section--visible
{
 opacity:1
}

.fadein.ngs-survey__flow-section--previous
{
 opacity:0
}

.fadein.ngs-survey__flow-section--next
{
 opacity:0
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ngsurvey.com/fr/form-management/form-designer/form-settings/single-question-flow/animation-transitions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
