TwTransitionsAnimation.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <script setup>
  2. import useTransitionsAnimation from '../../hooks/useTransitionsAnimation.js'
  3. const { TransitionProperty, TransitionDuration, TransitionTimingFunction, TransitionDelay, Animation } = useTransitionsAnimation()
  4. </script>
  5. <template>
  6. <view>
  7. <JcDemo v-bind="TransitionProperty"></JcDemo>
  8. <JcDemo v-bind="TransitionDuration"></JcDemo>
  9. <JcDemo v-bind="TransitionTimingFunction"></JcDemo>
  10. <JcDemo v-bind="TransitionDelay"></JcDemo>
  11. <JcDemo v-bind="Animation">
  12. <view class="text-lg p-2">Spin</view>
  13. <view class="flex items-center justify-center">
  14. <button type="button" class="inline-flex items-center px-4 py-2 font-semibold leading-6 text-sm shadow rounded-md text-white bg-indigo-500 transition ease-in-out duration-150 cursor-not-allowed" disabled="">
  15. <text class="animate-spin -ml-1 mr-3 h-5 w-5 text-white border-2 border-indigo-50 border-t-transparent rounded-full"></text>
  16. Processing...
  17. </button>
  18. </view>
  19. <view class="text-lg p-2">Ping</view>
  20. <view class="flex items-center justify-center">
  21. <view class="relative inline-flex">
  22. <button type="button" class="inline-flex items-center px-4 py-2 font-semibold leading-6 text-sm shadow rounded-md text-sky-500 bg-white transition ease-in-out duration-150 cursor-not-allowed ring-1 ring-slate-900 " disabled="">
  23. Transactions
  24. </button>
  25. <view class="flex absolute h-3 w-3 top-0 right-0 -mt-1 -mr-1">
  26. <text class="animate-ping absolute inline-flex h-full w-full rounded-full bg-sky-400 opacity-75"></text>
  27. <text class="relative inline-flex rounded-full h-3 w-3 bg-sky-500"></text>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="text-lg p-2">Pulse</view>
  32. <view class="bg-white p-4 rounded-lg shadow-lg max-w-xs w-full h-28">
  33. <view class="flex space-x-4 animate-pulse">
  34. <view class="rounded-full bg-slate-200 h-10 w-10"></view>
  35. <view class="flex-1 space-y-6 py-1">
  36. <view class="h-2 bg-slate-200 rounded"></view>
  37. <view class="space-y-3">
  38. <view class="grid grid-cols-3 gap-4">
  39. <view class="h-2 bg-slate-200 rounded col-span-2"></view>
  40. <view class="h-2 bg-slate-200 rounded col-span-1"></view>
  41. </view>
  42. <view class="h-2 bg-slate-200 rounded"></view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="text-lg p-2">Bounce</view>
  48. <view class="animate-bounce bg-white p-2 w-10 h-10 ring-1 ring-slate-900 shadow-lg rounded-full flex items-center justify-center"></view>
  49. </JcDemo>
  50. </view>
  51. </template>
  52. <style>
  53. </style>