awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
sindresorhus avatar

sindresorhus/screenfull

0
View on GitHub↗
7,144 Stars·683 Forks·HTML·MIT·2 Aufrufesindresorhus.com/screenfull↗

Screenfull

Screenfull is a lightweight JavaScript utility that wraps the browser's Fullscreen API into a single, consistent interface. It normalizes the vendor-prefixed fullscreen methods across different browsers, providing a unified way to request, exit, and toggle fullscreen mode on any DOM element or the entire page.

The library handles cross-browser differences automatically, abstracting away the webkit, moz, and ms prefixes behind a clean API. It includes runtime feature detection to check browser support before exposing fullscreen methods, and uses promises for asynchronous fullscreen requests and exits, enabling straightforward error handling and chaining. Screenfull also provides event-driven state tracking, listening to native fullscreenchange and fullscreenerror events to maintain accurate internal state and fire callbacks when fullscreen mode is entered, exited, or fails.

Beyond the core request and exit functions, Screenfull offers a toggle method that automatically determines whether to enter or exit fullscreen based on the current state. It includes utilities for querying the current fullscreen element, checking whether fullscreen is active, and attaching or removing event listeners for change and error events. The library also provides a fullscreen availability check that considers iframe permissions, helping developers avoid runtime errors when fullscreen is not permitted.

Features

  • Fullscreen API Wrappers - The core purpose of the library: a cross-browser wrapper for the Fullscreen API.
  • Fullscreen State Trackers - Listens to native fullscreen events to maintain accurate internal state.
  • Fullscreen State Toggles - Provides a single toggle method that automatically enters or exits fullscreen.
  • Browser API Normalizers - Normalizes browser-specific Fullscreen API methods into a single consistent interface.
  • Fullscreen Target Mapping - Allows requesting fullscreen on a specific DOM element or the entire document.
  • Fullscreen Feature Detectors - Checks browser support for fullscreen methods before exposing them.
  • Fullscreen Management - Provides a unified API to detect whether the document is currently in fullscreen mode.
  • Native Fullscreen Toggles - Provides a toggle method that automatically enters or exits native fullscreen mode.
  • Fullscreen Entry Request - Requests fullscreen for a specific DOM element or the whole page, returning a promise.
  • Fullscreen Exit Request - Exits fullscreen mode and returns to normal view, resolving a promise when done.
  • Fullscreen Toggle Requests - Ships a toggle method that returns a promise when fullscreen mode changes.
  • Fullscreen Toggle Utilities - Provides a toggle utility that automatically determines whether to enter or exit fullscreen.
  • Fullscreen Mode Togglers - Switches a page or element into fullscreen mode using a consistent cross-browser wrapper.
  • Vendor Prefix Normalizers - Normalizes vendor-prefixed fullscreen method names across browsers into a unified API.
  • Fullscreen Event Attachers - Attaches callbacks for fullscreen entry, exit, and error events.
  • Promise-Based Chains - Wraps fullscreen requests and exits in promises for chaining and error handling.
  • Fullscreen Event Listeners - Provides cross-browser event listener attachment for fullscreen state changes and errors.
  • Fullscreen Change Callbacks - Fires a callback whenever the fullscreen state changes.
  • Fullscreen Event Detachers - Detaches previously registered callbacks from fullscreen change or error events.
  • Fullscreen Event Subscribers - Subscribes to fullscreen change and error events for reactive behavior.
  • Fullscreen Permission Checkers - Checks whether the browser permits entering fullscreen mode, considering iframe permissions.
  • Fullscreen Support Detectors - Provides a function to check fullscreen availability, considering iframe permissions.

Star-Verlauf

Star-Verlauf für sindresorhus/screenfullStar-Verlauf für sindresorhus/screenfull

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Screenfull

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Screenfull.
  • sindresorhus/screenfull.jsAvatar von sindresorhus

    sindresorhus/screenfull.js

    7,143Auf GitHub ansehen↗

    screenfull.js is a JavaScript wrapper for the Fullscreen API that provides a unified interface for toggling, monitoring, and verifying the fullscreen state of web page elements. It functions as a cross-browser utility to manage how elements expand to fill the display. The library handles browser-specific differences by normalizing inconsistent vendor methods into a single interface. This ensures consistent behavior when implementing immersive web experiences or interactive media playback across different web browsers. The toolset covers fullscreen management, including capabilities for enter

    HTML
    Auf GitHub ansehen↗7,143
  • webrtchacks/adapterAvatar von webrtcHacks

    webrtcHacks/adapter

    3,742Auf GitHub ansehen↗

    Adapter is a browser compatibility layer and normalization library for WebRTC. It functions as an API shim that standardizes interfaces and behavior across different web browsers to ensure consistent real-time audio and video communication. The project distinguishes itself by detecting browser engine versions to identify specific quirks and specification differences. It applies targeted patches and wrappers to insulate applications from inconsistent API implementations and browser-specific prefix differences. The library covers a broad range of normalization capabilities, including interface

    JavaScript
    Auf GitHub ansehen↗3,742
  • browserstate/history.jsAvatar von browserstate

    browserstate/history.js

    10,659Auf GitHub ansehen↗

    history.js is a cross-browser URL state manager and HTML5 History API polyfill. It functions as a single page application router that manages browser URL and history state consistently across HTML5 and HTML4 browsers, enabling navigation without triggering full page reloads. The project provides a JavaScript framework adapter that integrates history management with the event systems of jQuery, MooTools, and Prototype. It ensures compatibility through a fallback mechanism that switches to hash-based navigation and hashbang URLs when the native HTML5 History API is unavailable. The system cove

    JavaScripthashchangehtml5-historyhtml5-history-api
    Auf GitHub ansehen↗10,659
  • nickersoft/push.jsAvatar von Nickersoft

    Nickersoft/push.js

    8,665Auf GitHub ansehen↗

    Push.js is a cross-browser JavaScript library for displaying native desktop notifications from web applications. It wraps the divergent browser notification APIs into a single consistent interface, handling permission requests through a promise-based flow and providing graceful fallback when the native Notification API is unavailable. The library distinguishes itself through its event-driven lifecycle hooks, which expose callbacks for notification events such as show, click, close, and error. It also supports programmatic dismissal by returning a notification handle with a close method, and i

    JavaScriptjavascriptjavascript-librarynotification-api
    Auf GitHub ansehen↗8,665
Alle 30 Alternativen zu Screenfull anzeigen→

Häufig gestellte Fragen

Was macht sindresorhus/screenfull?

Screenfull is a lightweight JavaScript utility that wraps the browser's Fullscreen API into a single, consistent interface. It normalizes the vendor-prefixed fullscreen methods across different browsers, providing a unified way to request, exit, and toggle fullscreen mode on any DOM element or the entire page.

Was sind die Hauptfunktionen von sindresorhus/screenfull?

Die Hauptfunktionen von sindresorhus/screenfull sind: Fullscreen API Wrappers, Fullscreen State Trackers, Fullscreen State Toggles, Browser API Normalizers, Fullscreen Target Mapping, Fullscreen Feature Detectors, Fullscreen Management, Native Fullscreen Toggles.

Welche Open-Source-Alternativen gibt es zu sindresorhus/screenfull?

Open-Source-Alternativen zu sindresorhus/screenfull sind unter anderem: sindresorhus/screenfull.js — screenfull.js is a JavaScript wrapper for the Fullscreen API that provides a unified interface for toggling,… webrtchacks/adapter — Adapter is a browser compatibility layer and normalization library for WebRTC. It functions as an API shim that… nickersoft/push.js — Push.js is a cross-browser JavaScript library for displaying native desktop notifications from web applications. It… browserstate/history.js — history.js is a cross-browser URL state manager and HTML5 History API polyfill. It functions as a single page… boltsframework/bolts-android — Bolts-Android is a mobile development library for Android that provides a framework for deep-linking and a system for… guzzle/promises — This project is a PHP implementation of the Promises/A+ specification, providing a library for managing asynchronous…