An image off icon that draws itself on hover and cuts a slash through the picture when images are turned off.
React + HTML
Безкоштовно
Стан
Більше нижче ↓
Вбудовано
Що ви отримуєте
Світла й темнаВикористовує кольори вашої теми
Пакети…
Розмір коду…
Перевіряється після кожної зміни
Перевірка типівСтрогий TypeScript
Лінтер і форматESLint · Prettier
Тести й збіркаСкриншоти у світлій і темній темах
Аудит безпекиБез високих чи критичних загроз
Вік пакетівКожна версія публічна 7+ днів
Процесор у спокоїМенше половини ядра у спокої, ≤ 30 fps
Код
Щось не так із цим компонентом? Надіслати відгук ›
image-off-iconHTML
index.htmlpageThe markup to copy, between the copy-from-here comments, on a demo page.
style.cssstyleThe styles: copy them into your CSS.
script.jsscriptThe behavior: load it after the markup.
index.html
The markup to copy, between the copy-from-here comments, on a demo page.
Завантаження…
Підходить для
Hide images toggles, data saver modes, missing image placeholders and media settings.
Як це працює
Hover it and the frame draws in, then the hills and the sun. Turn images off and a slash draws corner to corner, the frame opens where it crosses, the sun sets and the hills dim.
Як користуватися
Підключіть style.css і script.js на своїй сторінці, потім вставте розмітку з index.html туди, куди потрібно.