-
Notifications
You must be signed in to change notification settings - Fork 306
feat(nuxt-img): expose <img> element
#1834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
commit: |
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1834 +/- ##
========================================
+ Coverage 7.03% 7.06% +0.02%
========================================
Files 77 77
Lines 3552 3554 +2
Branches 138 138
========================================
+ Hits 250 251 +1
- Misses 3254 3255 +1
Partials 48 48 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
1315a11 to
0c48f64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you want to do with the image element?
|
@danielroe In my specific case I want to rotate the image in realtime. The My solution for now is using () => {
if (!self.value) return;
const img = self.value.querySelector('img');
if (!img) return;
img.style.setProperty('--background-rotation', `${rotate}deg`);
} |
07e97d7 to
5d5e4bc
Compare
Co-authored-by: Daniel Roe <[email protected]>
5d5e4bc to
cb76488
Compare
|
Hey! Any reason not to approve this one? |
|
@LeonardoRick is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
<img> element
π Linked issue
β Type of change
π Description
Expose the image element as its currently impossible to access it without a
querySelector