Comments (4)
The <button>
suggestion is a nice one and I made that change (1.2.1
version released). I'm a little bit puzzled about the second step. Can you please clarify on that.
from gifffer.
right, so normal images have an "alt" Attribute. See <img src="img.gif" alt="some text">
, if a blind user traverse the page, his screen reader will read aloud that alt attribute: 'some text, img'. Now with gifffer we lose that alt attribute. An Idea would be to have something like this: <img data-gifffer="image.gif" data-gifffer-alt="some text" />
and using that information in code to populate the gifffer with a visually hidden text. Simplified something like this: <container><playbutton /><canvas /><visuallyhidden>some text</visuallyhidden></container>
(obviously with real tags, these are only to clarify the example) so that some text remains there. Which is also a good practice for SEOβ¦ Then, it actually makes more sense to make the playbutton a button, not the whole div and hide the playbutton for screen readers (since blind users do not need to play the gif, they just need access to the alt text and having a playbutton they donβt know what it does might confuse them). If you want, I can make a pull request this weekend with that addition, what do you think?
from gifffer.
I see. The container-to-button
is already done. I'll be happy to see a PR for the alt
text.
from gifffer.
You may close this issue now π
from gifffer.
Related Issues (20)
- Centering animated gif HOT 4
- npm module HOT 3
- Can you apply the play/stop button on a frame other than the 1st? HOT 4
- gif loaded after refresh page only HOT 4
- Customization request HOT 3
- callback
- Small site redraw without picture or placeholder
- Object_fit does not work HOT 3
- Not pausing on Microsoft Edge HOT 2
- the problem of calculatePercentageDim HOT 1
- when to show data-gifffer-alt HOT 3
- no control button on the UC browser mobile HOT 2
- Complete programmatic access HOT 2
- Showing last played frame when pause button pressed HOT 2
- Node module won't resolve HOT 3
- Transition not smooth
- possible to stop other?
- title (tooltip) is ignored by gifffer
- Preview Picture HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gifffer.