vuejs change class properties, to change elements of an lottie animation - vue.js

I load a lottie animation into a svg tag.
Within this lottie-animation, various elements are assigned classes, for example to show a shadow.
this class is of course buried deep in the lottie svg, how can I now change the style of this class with vue tools.
the class is very simple,
.myshadow {
filter: drop-shadow(12px 12px 6px #ff0000);
}
is there a way to change e.g. the transparency or color of the shadow.
a dynamic class will not work, is there a way to change e.g. the transparency of the shadow.
the only question is whether I can also do this directly with vuejs, so that, for example, a component can react dynamically to the switch of a flag outside of the composition. e.g. the contrast of the application is changed to black and white, then the shadow should be disabled. also not to change the class or style, i want to change the properties of the CSS class.

Related

Which less-variable changes/remove the color/fading animation for links/menus in Ant Design?

I have included the less files for Ant Design (antd) into my React-app, because I want to customise the theme, as explained here and here. However, I am uncertain which variables to change, to edit or remove the fading-effect when hovering menu-items. (I.e. I would like the text and background color of the hovered menu item to change faster or immediately.)
You cannot achieve that level of customization through editing theme variable. you would need to manually apply custom css on those elements that you would like to customize, eg
for example, making the hover animation to 4s while you hover it.
.ant-menu-item:hover {
transition-duration: 4s;
}
to find exact classname you can always inspect the node
using the same idea you can fit your custom needs.

Wait on element resize done after changing width trough renderer

Is there a way to detect when an html element (native element) is done with resizing after the style: width property has been changed trough the use of the angular renderer2?
I have currently implemented a font sizing system based on the width of the parent container, but I have to use a timeout seeing the innerwidth of the parent element is not final when the font sizing is called. This parent uses css-grid properties set trough the renderer2.setStyle method.
so what i want boils down to this:
renderer.setStyle(element, cssGridStyleProperty).
(wait on renderer and browser to finish rendering).
renderer.setStyle(element, fontSizeParentBasedProperty).

Sapui5 horizontal line

is there any alternative to the depricated"HorizontalDivider" in SAPUI5? Since Sap doesn´t mention any alternative, I ran over something like "" Element that draws a Horizontal line?
It is better that you use a toolbar element as it has the bottom border. When you use the html hr tag, it does not respect the theme color while the toolbar use the theme color and also its spacing policy.
<sap.m.Toolbar width="100%" height="1px"/>
It the following picture you can see what is the result of using a toolbar with 1px height.
And in the following picture the result of using html hr tag.
Or you can use any boxing elements of the UI5 and just play with its class. For example you can assign the class sapMTBStandard to your element to make a bottom border with suitable color in your theme.
<html:hr></html:hr>
Make sure you add xmlns:html="http://www.w3.org/1999/xhtml" library

`View` inside `View` leaving slight margin 😖

View inside View leaving slight margin. See red. Code is minimal, I will post if there isn’t a quick gotcha that someone knows about. In CSS, this is often a line-height culprit, not the case here as react native doesn’t have that property in View.
React Native do not add margin or padding by default. You might have added padding in your parent View or margin in your child.
You can use Show Inspector in your device where this is been caused.

Chameleon site, changing site's color with the color selector

I want to learn how can i design a site which background and images color will be changeable by the user. Colors could change by only one color within 4 colors such as green, blue, white etc. in the sites such as msn, yahoo etc. But, there was no effects like drop shadow or gradient overlay in that images. However, I want to change color of images which applied effects such as drop shadow, gradient overlay. Moreover, with each color. Just like chameleon.
I can put a text link on the right of the top. A color selector like at Photoshop can open, when the user clicked this link. Color selector generates a hex code according to selected color. Color of site changes to color which the user selected.
I changed an image background color which is transparent by using JavaScript DOM. Color of transparent area in the image will be the same with the background color of div tag which contains this image. But, if the image has got effects like shadow, overlay etc., the changing color will be disable.
How can I do it, and which technology will I use, jQuery, Ajax? How I create a site which color could change.How I create a site which color will be changeable by the user.
Just like chameleon...
Hmm, well this might take a while to implement, if you're starting with little knowledge.
My suggestion, to get you started, is to have a javascript which changes the class of the body element according to a selection the user makes. So let's say I visit the page, the <body> tag has no class, and default css is used.
Then I click on the link to make things red. Using javascript, or jquery, give the body the class "red-body".
Have css in your stylesheet which only works for elements which are children of an element with this class.
Html:
Go Red
jQuery
$('.go-red').click(function(){$('body').removeClass();$('body').addClass('red-body');});
So if you have code like:
#navigation li{color:#000;}
.red-body #navigation li{color: #af000;}
This will make this possible. This means you can do it all with just one stylesheet, which I think is the best way.
There are a number of ways to store the users choice. One of the easiest ways is to set a cookie in their browser. You can do this with javascript, here's the introduction from w3schools: http://www.w3schools.com/JS/js_cookies.asp