alvarotrigo/vue-fullpage.js — dự án frontend — đang có 1.9k sao GitHub trong nhóm Frontend. Official Vue.js wrapper for fullPage.js http://alvarotrigo.com/vue-fullpage/
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Official Vue.js 3 wrapper for the fullpage.js library.
Codesandbox Demo
fullpage.js Extensions
By @imac2. Thanks to VasiliyGryaznoy , dragg, Raphael Owino and Jonathan Schneider.
Table of contents
Vue-fullpage.js - Official Vue.js 3 wrapper
Table of contents
Installation
License
Commercial license
Open source license
Example
Usage
Bundler (Vite)
Browser
Required HTML
Options
Delayed init
Methods
Callbacks
Dynamic changes
Usage with Nuxt.js
:construction: Usage with Gridsome
Automation
Contributing
Resources
Installation
Terminal:
// With npm
npm install --save vue-fullpage.js
License
Commercial license
If you want to use fullPage to develop nonopen sourced sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. This means, you won't have to change your whole application source code to an open-source license. [Purchase a Fullpage Commercial License]
Open source license
If you are creating an open-source application under a license compatible with the GNU GPL license v3, you may use fullPage under the terms of the GPLv3.
You will have to provide a prominent notice that fullPage.js is in use. The credit comments in the JavaScript and CSS files should be kept intact (even after combination or minification).
Read more about fullPage's license.
Example
// With npm
cd example/
npm install
npm run start
Usage
Bundler (Vite)
import { createApp } from 'vue'
import App from './App.vue'
import 'vue-fullpage.js/dist/style.css'
import './fullpage.scrollHorizontally.min' // Optional. When using fullpage extensions
import VueFullPage from 'vue-fullpage.js'
const app = createApp(App)
app.use(VueFullPage)
app.mount('#app')
Notice that when using the option scrollOverflow:true or any fullPage.js extension you'll have to include the file for those features before the vue-fullpage component.
Browser
You can check a browser stand-alone demo here.
<!-- On the page head -->
<link
rel="stylesheet"
href="https://unpkg.com/vue-fullpage.js/dist/style.css"
/>
<!-- Include after Vue (before closing body) -->
<script type="module" src="https://unpkg.com/vue-fullpage.js/dist/vue-fullpage.es.js"></script>
Required HTML
This wrapper creates a <full-page> component , which you can use like other Vue.js components. For example:
You can use any options supported by fullPage.js library.
Just pass the options object into this wrapper like Vue.js property.
Options object can contain simple options as well as fullPage.js callbacks.
Notice that if you want to make use of the option scrollOverflow:true, you'll have to include the scrollOverflow file before vue-fullpage.js, as detailed above.
Full-page will init itself automatically on mount. This may not work properly when using async components inside its sections, as it has no way of knowing when said components are ready and mounted.
Use the skipInit prop to stop full-page from initializing itself. You can do it when youself by using a ref like:
Similarly, you can handle any event of the fullPage.js library.
Just translate camelCase name of callback to kebab-case and use it ;)
Dynamic changes
vue-fullpage.js will watch all changes taking place within the fullpage.js options but will NOT automatically watch any DOM changes. If you want vue-fullpage.js to react to DOM changes call the build() method after making those changes. For example:
//creating the section div
var section = document.createElement('div')
section.className = 'section'
section.innerHTML = '<h3>New Section</h3>'
//adding section
document.querySelector('#fullpage').appendChild(section)
//where --> var vm = new Vue({...}) if calling it from outside.
vm.$refs.fullpage.build()
//or, when calling it from inside the Vue component methods:
this.$refs.fullpage.build()
In order for fullPage.js to get updated after a change in any of the fullPage.js options, you'll have to make sure to use such an option in the initialization.
For example, if we want fullPage.js to get updated whenever I change the scrollBar and controlArrows options, I'll have to use the following initialisation:
alvarotrigo/vue-fullpage.js có phải mã nguồn mở không?
Có — alvarotrigo/vue-fullpage.js phát hành theo license GPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/alvarotrigo/vue-fullpage.js.
alvarotrigo/vue-fullpage.js có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho alvarotrigo/vue-fullpage.js. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
alvarotrigo/vue-fullpage.js còn đang phát triển không?
Commit gần nhất trên alvarotrigo/vue-fullpage.js là 1.0 năm trước (theo timestamp GitHub). Repo có 250 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
alvarotrigo/vue-fullpage.js dùng license gì?
alvarotrigo/vue-fullpage.js phát hành theo license GPL-3.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc thêm về alvarotrigo/vue-fullpage.js ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/alvarotrigo/vue-fullpage.js là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về vue-fullpage.js?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về vue-fullpage.js.