Skip to content

Document -global- prefix for global CSS Animations #3352

@dcrck

Description

@dcrck

Hi,

When working with Google Maps, you create custom Markers with a createMarker function which takes in the marker's HTML as a string. That means if you want to apply styles or transitions to it, you need to use the :global tag in Svelte. I'd like to apply small animations to the markers on certain conditions, but it appears that I can't apply a CSS animation (e.g. @keyframes animation_name {...} in the Svelte component using the :global tag. When I tried, Svelte yelled at me with an Expected Identifier error.

I'd like this functionality to be enabled if possible. It's not super-critical since I can just put the css animation in my global.css file, and it's a very uncommon use case, but it would be nice 😄 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions