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 кадров/с
Код
Что-то не так с этим компонентом? Отправить отзыв ›
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 туда, где она нужна.