I am trying to understand how it works, but still confused by the tricks on how to use it correctly. I found there are always some class name on image/elements:
blendmode-hard-light
blendmode-multiply
and in the document of Poster_Fridays_For_Future, there is even no Class name are set to both images.
I just guess these class name are preset in both Javascript files of HypeClipPath-17-beta6.js and HypeBlendModes.min.js, but not from standard CSS3, since these names seems little different with the ones of CSS3, am I right please?
If yes, but I only found blendmode-multiply in HypeClipPath-17-beta6.js, but not found blendmode-hard-light in both of those two Javascript files.
So, if these blend mode class name are preset, how manny can we use for now please?
Or, is there any preset format to use for the way of define these class names please?
Or, it would be appreciated if there is a tutorial to clarify.
It would be great appreciated, and thanks in advance.
Hello @alexlii, you're mixing two things. Hype Blendmodes and Hype ClipPath are two different projects. Fridays for Futures has it's own thread and only uses Blendmodes. Hype Blendmodes also has it's own thread. Hype ClipPath doesn't include blendmodes at all. Please keep this thread related to Hype ClipPath and also it is still the beta as I said…
Currently, I don't have time so be patient and refrain from using it in production if you don't understand how it works from reading the files or code itself.
I found it will work if the container is set to be with iframe, and these two javscripts file will be downloaded only if it is set to be iframe, please check the screenshot:
Please just wait for the turtorial and the official 1.7 and your current problem is that the JS file needs to be referenced in your WordPress header. The other option is that the Hype widget can be embedded as an iFrame in the WordPress plugin. This a general thing with additional external resources in Hype on WordPress and there are plenty of threads dealing with that. So this isn’t a particular Hype ClipPath thing.
Yes, I know that. Actually, both HypeBlendModes and HypeClipPath-17-beta6 will work in IFrame, but all of the triggers of animation will not work in IFrame mode, just as I said in the last post:
I just remember that It is the same situation in this post of the font gradient:
and Font gradient works in DIV mode by input custom CSS in Hype document, is it possible to make both HypeBlendModes and HypeClipPath-17-beta6 work in DIV too by input custom CSS, please?
i did a short test ( Chrome 77.0.3865.90 (Offizieller Build) (64-Bit)) using physics for the mask and some responsive settings.
i found that the coordinates for the path do no respect the responsive settings …
in conjunction there’s a initially-repeating error in updateClipPath-function (undefined values …)
Sorry but this has probably nothing todo with Hype ClipPath or blendmodes. If you include external scripts to the head section and include it as a DIV the WordPress plugin never included them for you automatically. As you are building a lot of stuff based on the WordPress plugin (it seams) you should familiarize yourself with this fact and stop reporting it as an error. Please search the forum on this. Here is on result to get you started:
It’s true… currently not supporting Hype pinning on the path itself. It has todo with the transfer of transformation data from one coord space to another and having pinnings makes that complicated.
One funny side note to investigate… the transfer of position on the physics engine starts the moment the first collision happens. As I am observing the transform data with a Mutation Observer there seams to be something going on. Seams like rotation is not set and a valid number. That should be fixable. I just added a initial value to rotaion and it is fixed so it’s the case of rotation 0 that needs to be adressed by Hype ClipPath! Thanks!
Little helper: add data-clip-path-visible true to the path (not the target) and it will stay visible. This way you know where the orginal is.
Another thing if you want to be able to add a click zone on the object while leaving it visible. Add a color fill with 0% opacity.
I found the HypeClipPath.min.js support pinning, but not support path animation, and HypeClipPath-17-beta6 does not support pinning, but support path animation.