<?xml version="1.0" encoding="utf-8"?>
<includes>
    <include name="VisibleFadeEffect">
        <animation effect="fade" time="200">Visible</animation>
        <animation effect="fade" time="200">Hidden</animation>
        <animation effect="fade" start="0" end="100" time="200">WindowOpen</animation>
        <animation effect="fade" start="100" end="0" time="200">WindowClose</animation>
    </include>
    <include name="VisibleFadeEffectDelay">
        <animation effect="fade" time="300" delay="100">Visible</animation>
        <animation effect="fade" time="0">Hidden</animation>
    </include>
    <include name="OSDFade">
        <animation effect="fade" start="0" end="100" time="100">WindowOpen</animation>
        <animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
    </include>
    <include name="OSDVisibleFadeEffect">
        <animation effect="fade" time="100">Visible</animation>
        <animation effect="fade" time="100">Hidden</animation>
    </include>
    <include name="MusicOSDFade">
        <animation effect="fade" time="500">Visible</animation>
        <animation effect="fade" time="200">Hidden</animation>
    </include>
    <include name="MusicOSDSlideRight">
        <animation type="Visible">
            <effect type="slide" tween="circle" easing="out" time="150" start="1350,0"/>
        </animation>
        <animation type="Hidden">
            <effect type="fade" start="100" end="0" time="150"/>
            <effect type="slide" tween="circle" easing="in" time="150" end="1350,0"/>
        </animation>
    </include>
    <include name="OpenClose">
        <animation effect="fade" time="150">WindowOpen</animation>
        <animation effect="fade" time="150">WindowClose</animation>
    </include>
    <include name="OpenCloseSlideRight">
        <animation type="WindowOpen">
            <effect type="slide" tween="circle" easing="out" time="150" start="1350,0"/>
        </animation>
        <animation type="WindowClose">
            <effect type="fade" start="100" end="0" time="150"/>
            <effect type="slide" tween="circle" easing="in" time="150" end="1350,0"/>
        </animation>
    </include>
    <include name="OpenCloseSlideLeft">
        <animation type="WindowOpen">
            <effect type="slide" tween="circle" easing="out" time="150" start="-750,0"/>
        </animation>
        <animation type="WindowClose">
            <effect type="fade" start="100" end="0" time="150"/>
            <effect type="slide" tween="circle" easing="in" time="150" end="-750,0"/>
        </animation>
    </include>
    <include name="DialogOpenClose">
        <animation type="WindowOpen">
            <effect type="fade" start="0" end="100" time="150"/>
        </animation>
        <animation type="WindowClose">
            <effect type="fade" start="100" end="0" time="150"/>
        </animation>
    </include>
    <include name="PlexbmcFixTrick">
        <animation effect="slide" time="0" start="0,0" end="4000,0" condition="!Window.IsVisible(DialogBusy.xml)">Conditional</animation>
        <animation effect="fade" time="150" start="0" end="100" condition="!Window.IsVisible(DialogBusy.xml)">Conditional</animation>
        <posx>-4000</posx>
    </include>
    <include name="Icon_Fade">
        <fadetime>200</fadetime>
        <animation effect="fade" time="200">Visible</animation>
        <!--  <animation effect="fade" time="100">Hidden</animation> -->
    </include>
    <include name="SlideView">
        <animation effect="slide" tween="circle" easing="in" time="150" start="0,0" end="-780,0" condition="[control.hasfocus(60)+Skin.HasSetting(FixedShortListUnknown)]|
        [control.hasfocus(60)+!Skin.HasSetting(FixedShortListUnknown)+
        ![
        String.IsEmpty(ListItem.AddonDescription)+
        String.IsEmpty(ListItem.Property(Artist_Description))+
        String.IsEmpty(ListItem.Property(Album_Description))+
        String.IsEmpty(ListItem.Property(Event.Description))+
        String.IsEmpty(ListItem.Plot)+
        String.IsEmpty(Container(500).ListItem.Plot)
        ]]">Conditional</animation>
    </include>
    <include name="HideMediaInfo">
        <animation effect="fade" time="150" start="100" end="0" condition="control.hasfocus(60)">Conditional</animation>
    </include>
    <include name="SlideViewUnknown">
        <animation effect="slide" tween="circle" easing="in" time="150" start="0,0" end="-780,0" condition="!Skin.HasSetting(FixedShortListUnknown)+
        [
        String.IsEmpty(ListItem.AddonDescription)+
        String.IsEmpty(ListItem.Property(Artist_Description))+
        String.IsEmpty(ListItem.Property(Album_Description))+
        String.IsEmpty(ListItem.Property(Event.Description))+
        String.IsEmpty(ListItem.Plot)+
        String.IsEmpty(Container(500).ListItem.Plot)
        ]">Conditional</animation>
    </include>
    <include name="Animation_ViewsCDart">
        <animation effect="rotate" end="-360" center="auto" time="5000" loop="true" reversible="false" condition="[[Player.HasAudio|Player.HasVideo] + !Player.Paused]">Conditional</animation>
        <animation effect="rotate" start="0" end="-360" center="auto" time="40000" loop="true" reversible="false" condition="!Player.HasVideo">Conditional</animation>
    </include>
    <include name="PulseClearArt">
        <visible>Skin.HasSetting(EnableClearArt)</visible>
        <animation type="Conditional" pulse="true" reversible="false" condition="Skin.HasSetting(EnableClearLogo)+
                    [
                    [!String.IsEmpty(ListItem.Art(clearlogo)) + ![Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]]]
                    |
                    [!String.IsEmpty(ListItem.Art(tvshow.clearlogo)) + [Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]]]
                    ]+[
                    [!String.IsEmpty(ListItem.Art(clearart)) + ![Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]] + ![Window.IsActive(MyMusicSongs.xml)|Window.IsActive(MyMusicNav.xml)]]
                    |
                    [!String.IsEmpty(ListItem.Art(tvshow.clearart)) + [Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]]]
                    |
                    [!String.IsEmpty(Window(Home).Property(SkinHelper.Music.ClearLogo)) + [Window.IsActive(MyMusicSongs.xml)|Window.IsActive(MyMusicNav.xml)]]
                    ]">
            <effect type="slide" start="0,0" end="0,0" time="1500" delay="3500"/>
            <effect type="fade" start="100" end="0" time="500" delay="3000"/>
        </animation>
    </include>
    <include name="PulseClearLogo">
        <visible>Skin.HasSetting(EnableClearLogo)</visible>
        <animation type="Conditional" pulse="true" reversible="false" condition="Skin.HasSetting(EnableClearArt)+
                    [
                    [!String.IsEmpty(ListItem.Art(clearlogo)) + ![Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]]]
                    |
                    [!String.IsEmpty(ListItem.Art(tvshow.clearlogo)) + [Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]]]
                    ]+[
                    [!String.IsEmpty(ListItem.Art(clearart)) + ![Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]] + ![Window.IsActive(MyMusicSongs.xml)|Window.IsActive(MyMusicNav.xml)]]
                    |
                    [!String.IsEmpty(ListItem.Art(tvshow.clearart)) + [Window.IsActive(MyVideoNav.xml)+[Container.Content(episodes)|Container.Content(seasons)]]]
                    |
                    [!String.IsEmpty(Window(Home).Property(SkinHelper.Music.ClearLogo)) + [Window.IsActive(MyMusicSongs.xml)|Window.IsActive(MyMusicNav.xml)]]
                    ]">
            <effect type="slide" start="0,0" end="0,0" time="1500" delay="3500"/>
            <effect type="fade" start="0" end="100" time="500" delay="3000"/>
        </animation>
    </include>
    <include name="PulseBasicHidden">
        <effect type="slide" start="0,0" end="0,0" time="1500" delay="3500"/>
        <effect type="fade" start="0" end="100" time="500" delay="3000"/>
    </include>
    <include name="PulseBasicVisible">
        <effect type="slide" start="0,0" end="0,0" time="1500" delay="3500"/>
        <effect type="fade" start="100" end="0" time="500" delay="3000"/>
    </include>
</includes>
