No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    I want use animation with vue cli plugin.

    Help
    2
    2
    459
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      daep93 last edited by daep93

      However, there is no guide for vue cli plugin.

      // quasar.js
      import Vue from 'vue';
      import '@quasar/extras/material-icons/material-icons.css';
      import '@quasar/extras/ionicons-v4/ionicons-v4.css';
      import 'quasar/dist/quasar.css';
      import { Quasar, Loading, QSpinner, Dialog } from 'quasar';
      import * as iconSet from '@quasar/extras/ionicons-v5';
      Vue.prototype.$i = iconSet;
      
      import '@quasar/extras/material-icons/material-icons.css';
      import '@quasar/extras/ionicons-v4/ionicons-v4.css';
      
      Vue.use(Quasar, {
        config: {
          // Quasar Spinning 파트 참조
          loading: {
            spinner: QSpinner,
            spinnerColor: 'teal-10',
            messageColor: 'white',
            message: '<b>Loading...</b>',
          },
        },
        plugins: { Loading, Dialog },
        animations: ['backInLeft', 'backOutLeft', 'fadeIn', 'fadeOut'],
      });
      
      // test.vue
      <transition
              appear
              enter-active-class="animated fadeIn"
              leave-active-class="animated fadeOut"
            >
              <q-icon
                :name="$i.ionCheckmarkCircleOutline"
                color="green"
                style="width:330px;height:330px"
              ></q-icon>
            </transition>
      

      Animation not works! How to fix in?

      beets 1 Reply Last reply Reply Quote 1
      • beets
        beets @daep93 last edited by

        @daep93 I have never used Quasar with vue-cli, but maybe the animations option array doesn’t work in Vue.use ? You could try to just copy / paste the css from here into your own css file:
        https://github.com/quasarframework/quasar/blob/dev/extras/animate/fadeIn.css

        @keyframes fadeIn {
          from {
            opacity: 0;
          }
        
          to {
            opacity: 1;
          }
        }
        
        .fadeIn {
          animation-name: fadeIn;
        }
        
        @keyframes fadeOut {
          from {
            opacity: 1;
          }
        
          to {
            opacity: 0;
          }
        }
        
        .fadeOut {
          animation-name: fadeOut;
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post