You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
Great stuff, just nit picking on how it could be done without adding additional elements into the DOM.
Hide the targeted img tags and hook up onload callbacks for each of the images, which will be used to grab the height when their finished.
Remove the src and move it onto an inlined styled background. Set the img height to 0 and the margin-bottom to the cached height value from the onload callback. Now begin to emulate the comcast-effect by increasing the height and decreasing the margin-bottom.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Great stuff, just nit picking on how it could be done without adding additional elements into the DOM.
Hide the targeted img tags and hook up onload callbacks for each of the images, which will be used to grab the height when their finished.
Remove the
src
and move it onto an inlined styledbackground
. Set theimg
height to 0 and the margin-bottom to the cached height value from the onload callback. Now begin to emulate the comcast-effect by increasing the height and decreasing the margin-bottom.The text was updated successfully, but these errors were encountered: