Skip to content

feat(transition): expose create transition classes #21352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 12, 2025

Conversation

ikushum
Copy link
Member

@ikushum ikushum commented May 2, 2025

Description

Exposed createCssTransition function and added proper documentation on it's usage and example.
fixes #16050

Markup:

<template>
  <v-container>
    <v-row justify="center">
      <v-col class="text-center">
        <v-btn
          color="primary"
          @click="show = !show"
        >
          My Transition
        </v-btn>

        <MyTransition>
          <v-card
            v-show="show"
            width="100"
            height="100"
            color="secondary"
            class="mx-auto mt-5"
          ></v-card>
        </MyTransition>
      </v-col>
    </v-row>
  </v-container>
</template>

<script setup>
import { ref } from 'vue'
import { createCssTransition } from 'vuetify/components/transitions';

const MyTransition = createCssTransition('my-transition')

const show = ref(false)
</script>

<style lang="scss">
.my-transition {
  &-enter-active,
  &-leave-active {
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  &-enter-from,
  &-leave-to {
    opacity: 0;
    transform: rotate(180deg) scale(0.2) skew(20deg);
    filter: hue-rotate(90deg);
  }
}
</style>

@ikushum ikushum requested a review from johnleider May 2, 2025 16:55
@ikushum ikushum self-assigned this May 2, 2025
@ikushum ikushum requested a review from KaelWD May 2, 2025 17:02
@ikushum ikushum force-pushed the feat/expose-createCssTransition branch 2 times, most recently from 61b6ea9 to 149a0ea Compare May 2, 2025 17:18
@ikushum ikushum force-pushed the feat/expose-createCssTransition branch from 149a0ea to 3b7f5bc Compare May 2, 2025 17:18
@ikushum ikushum changed the base branch from master to dev May 2, 2025 17:24
@ikushum ikushum changed the base branch from dev to master May 2, 2025 17:24
@ikushum ikushum force-pushed the feat/expose-createCssTransition branch from 05e7792 to 3b7f5bc Compare May 2, 2025 17:25
@ikushum ikushum changed the base branch from master to dev May 2, 2025 17:25
@ikushum ikushum changed the base branch from dev to master May 2, 2025 17:26
@ikushum ikushum merged commit c82fc85 into master May 12, 2025
18 checks passed
@ikushum ikushum deleted the feat/expose-createCssTransition branch May 12, 2025 15:29
KaelWD added a commit that referenced this pull request May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.0.0] Transitions - unable to import transition helper functions and update documentation of import to vue3
2 participants