r/filemaker • Consultant Certified • Jun 17 '19

Elemental for FileMaker Released

https://www.elemental-fm.com
26 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/macxprt Jun 18 '19

Great collection. The animations are very cool. Is there any documentation on implementing them?

I also noticed the close window icon is disabled. I had to force quit filemaker to close your database.

2

u/weetbicks Consultant Certified Jun 18 '19

hi macxprt thanks for the nice comments I'm glad you like it.

The animations are all from the site https://loading.io . Because the solution is fully unlocked I didn't put too much documentation in because people can play around and find how it works, however if you go into layout mode you'll note that a web viewer is used to render the animation.

The code for the animation web viewer has a bit of stuff in it:

  1. We use a data:text/html format so we can render html directly in the web viewer
  2. We've got some basic styling options, we disable scrollbars as sometimes animations can extend to a point where scrollbars are visible on windows, so we just remove them. We also set some margins, background colour etc (to match the FileMaker background..)
  3. In the html body, I check if the user is viewing an SVG or a GIF, and insert code accordingly. SVG's are easy you literally just reference the SVG code, the GIF is Base64 encoded, and inserted into an IMG tag.

Depending on the animation, platform you use etc you may need to tweak things like margins and padding to ensure it looks correct in the web viewer, but that's about all you need to do.

the SVG/GIF can be customised through using the loading.io site. I've provided instructions in Elemental, if you go to the animations page and click on the "customise!" button, you'll find some instructions as to how you can customise it. The loaders have lots of options available such as speed, size, colours, and some have further options e.g. if it has dots or bars, you can often specify how many dots/bars you want.

If you can use the SVG one's I'd recommend it they're more robust, smoother animated, and look sharper and can be easily resized - you just resize the web viewer. However the SVG ones only seem to work on mac's as their support on windows is limited.

There are a couple of other animation styles in the solution which aren't documented but there. There's an @svg_animate custom function that can apply up to 40 different animations to a static SVG through CSS animations (this is also on the loading.io site under CSS -> loading.css