Methods, systems and devices associated with an electronic candle are described. In one example, an electronic candle comprises a housing having a through-hole at its top and a component shell. The component shell encloses a transfer mechanism including a driver motor and one or more gears positioned inside the component shell, a light emitting component coupled to the transfer mechanism such that the transfer mechanism causes the light emitting component to move vertically up or down to protrude from the housing or to retract into the housing, a lid positioned inside the component shell and movable to remain in at least one of an open configuration or a closed configuration, and a controller configured to turn on or off the light emitting component. The candle also includes a controller configured to turn on or off the light emitting component.