Vue Fullscreen

screenshot of Vue Fullscreen
vite
vue
bulma
scss

A simple Vue.js component for fullscreen

Overview

The vue-fullscreen is a versatile Vue.js component that simplifies integrating fullscreen functionality in applications. Built on the robust screenfull.js library, it enhances user experience by allowing seamless transitions to fullscreen mode with minimal configuration. Whether you're creating a media-rich application or an interactive webpage, this component makes it incredibly easy to engage users with fullscreen displays.

With its straightforward installation and intuitive API, vue-fullscreen is adaptable to various use cases. Key features include support for multiple browsers and user-friendly methods for triggering fullscreen mode without exiting, making it a valuable addition for developers looking to enrich their Vue.js applications.

Features

  • Simple Installation: Easily installable via NPM with just a few lines of code; simply import and call Vue.use() to get started.
  • Toggle Fullscreen Mode: The toggle() method allows for instant fullscreen switching, whether using the entire document or a specific element as the target.
  • Browser Support Check: The isEnabled() method lets you check if the browser supports the fullscreen API, ensuring compatibility across platforms.
  • Asynchronous Operation: Methods return promises to guarantee you can accurately track fullscreen state after user gestures.
  • Custom Callbacks: Set callbacks to execute on fullscreen state changes for enhanced interactivity and user feedback.
  • Flexible Element Targeting: Choose any DOM element to enter fullscreen, providing more control over the UI experience.
  • Dynamic API Changes: Adapted method names for better clarity; for example, enter is now request, streamlining the API usage.
  • Special Handling for iOS: Includes unique support for handling fullscreen mode in different iOS devices, ensuring a smooth experience on mobile.
vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

bulma
Bulma

Bulma is a free, open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.