LoginSignup
1
1

More than 5 years have passed since last update.

vue製のslide show frameworkのeagle.jsを試す

Posted at

eagle.js

vueで実装されたslide show framework。

公式のdemoはこちらから確認できる。

できあがりイメージ

ひとまずこれ。最低限で動かすには、にフォーカスした。

eagle-animation.gif

ソース一式はgithubにあげている。
https://github.com/abcb2/eagle-sample

@vue/cli-service

どうbuildすればよいのだろうかと思ったが、cli-serviceを使うとちょうど良いコマンドが提供されていることがわかった。

ビルドする時に下記のようなエラーが出たが、他の記事で対応策が書かれていてwebpackのconfigに書けばよいとのことだった。

[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

vue.config.jsに下記の通り記述している。@vue/cli-serviceが拾ってくれるっぽい。

module.exports = {
  chainWebpack: config => {
    config.resolve.alias.set('vue$', 'vue/dist/vue.esm.js')
  },
};

所感

public/index.htmlの中のhead内でanimate.cssを読み込んでいる所とかはどうだろうかと思ったりもしたけれど、あまり元の公式demoから崩したくなかったのでひとまずそれでいいやと。

ふんわりとvueのことが分かったのは良かった。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1