Guest User

Untitled

a guest
Mar 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <div style="width: 400px; height: 400px;">
  2. <VueAutotyper v-bind:data="autotyper_data"></VueAutotyper>
  3. </div>
  4.  
  5. <script>
  6.  
  7. import VueAutotyper from 'vue-autotyper';
  8.  
  9. export default {
  10. components: {
  11. VueAutotyper
  12. },
  13. data: function() {
  14. return {
  15. autotyper_data: {
  16. view: {
  17. font: {
  18. family: 'monospace',
  19. color: '#ffffff',
  20. size: '14px'
  21. },
  22. text_align: {
  23. vertical: 'top',
  24. horizontal: 'left'
  25. },
  26. background: {
  27. color: '#000000'
  28. }
  29. },
  30. timing: {
  31. typing_speed: 100,
  32. deleting_speed: 20,
  33. duration: 3000
  34. },
  35. content: [
  36. {
  37. text: "> npm install --save vue-autotyper"
  38. },
  39. {
  40. text: "> clear"
  41. },
  42. {
  43. text: "> npm run dev"
  44. },
  45. {
  46. text: "And perfect!",
  47. view: {
  48. font: {
  49. family: '"Open Sans", sans-serif',
  50. color: '#ffffff',
  51. size: '30px'
  52. },
  53. text_align: {
  54. vertical: 'center',
  55. horizontal: 'center'
  56. },
  57. background: {
  58. image: {
  59. url: require('@/assets/images/demos/vue-autotyper/1.png'),
  60. },
  61. layer: {
  62. color: '#000000',
  63. opacity: 0.5
  64. }
  65. }
  66. },
  67. timing: {
  68. duration: 5000
  69. }
  70. }
  71. ]
  72. }
  73. }
  74. }
  75. }
  76.  
  77. </script>
Add Comment
Please, Sign In to add comment