Wondering if anyone can help with an animation.
I have a conditional card that I want to animate its arrival on screen. I have managed to make the card fade in, but I want the space the card takes to slide open. The link is a video showing what I have, and the code is below. Any help would be fab:
type: vertical-stack
cards:
- type: grid
columns: 1
square: false
cards:
- type: picture
image: local/header_information.jpg
tap_action:
action: navigate
navigation_path: /lovelace/upstairs
hold_action:
action: none
- type: conditional
conditions:
- entity: input_boolean.show_calendar
state: 'on'
card:
type: 'custom:atomic-calendar-revive'
entities:
- entity: calendar.bin_collection
name: Bin Collections
enableModeChange: true
firstDayOfWeek: 1
maxDaysToShow: 14
showDate: true
style: |
ha-card{
animation: fadeIn ease 2s;
-webkit-animation: fadeIn ease 2s;
-moz-animation: fadeIn ease 2s;
-o-animation: fadeIn ease 2s;
-ms-animation: fadeIn ease 2s;
}
@keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
- type: conditional
conditions:
- entity: input_boolean.eufy_advanced_settings
state: 'on'
card:
type: entities
entities:
- entity: input_datetime.eufy_schedule
- entity: input_boolean.eufy_weekend_clean
- entity: vacuum.robovac
name: Eufy Start / Stop
- entity: input_boolean.vacuum_disable
name: Disable Schedule
- type: grid
columns: 3
cards:
- type: button
tap_action:
action: navigate
navigation_path: /lovelace/security
entity: alarm_control_panel.ha_alarm
icon: 'hass:bell-outline'
show_state: true
name: Security
- type: button
tap_action:
action: toggle
entity: input_boolean.guest_mode_switch
show_state: true
show_name: true
show_icon: true
- entity: input_boolean.house_option_alarmclock
hold_action:
action: more-info
show_icon: true
show_name: true
tap_action:
action: navigate
navigation_path: /lovelace/alarmClock
type: button
show_state: true
- entity: climate.zone_1
name: Heating
hold_action:
action: navigate
show_icon: true
show_name: true
tap_action:
action: more-info
type: button
show_state: true
- type: 'custom:button-card'
aspect_ratio: 1/1
name: Next Bin
entity: input_select.bins
hold_action: none
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.show_calendar
show_icon: true
show_name: false
show_state: true
show_label: true
label: |
[[[
return 'Collection: ' + states['sensor.bin_day'].state;
]]]
state:
- value: Recycling
color: 'rgb(50, 50, 50)'
- value: Refuse
color: 'rgb(21, 150, 49)'
- value: Garden
color: 'rgb(92, 65, 12)'
styles:
icon:
- margin-top: '-20px'
- margin-bottom: 0px
name:
- font-size: 12px
- color: 'rgb(150, 150, 150)'
state:
- margin-top: '-55px'
- padding-bottom: 10px
label:
- font-size: 12px
- color: 'rgb(150, 150, 150)'
- margin-top: '-20px'
- margin-bottom: 20px
- entity: input_boolean.eufy_advanced_settings
hold_action:
action: more-info
icon: 'mdi:robot-vacuum'
name: Eufy Settings
show_icon: true
show_name: true
show_state: false
tap_action:
action: toggle
type: button