Program alteration needed HC12 Receiver section

I am very new to Arduino programing. Recently I brought HC12 RxTx module its working fine with Arduino. and i used HC-12 Momentary Button send and receive program it is working fine. But I need some alteration in this program. When I press Button in sender side in receiver side LED is glowing stedy. But i need this when i press the sender side button LED to slow glow (fade) from '0' to 'high bright' and when i release the sender side button i want the LED 'high bright' to '0' slowly.

pls help anybody

The receiver side program is below:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX

int ledPin = 13;
unsigned long last = millis();//set timer

void setup() {
mySerial.begin(9600);
pinMode(ledPin, OUTPUT);
}

void loop() {

boolean ledState = digitalRead(ledPin);//check if the LED is turned on or off. Returns 1 or 0

if(mySerial.available() > 1){
int input = mySerial.parseInt();//read serial input and convert to integer (-32,768 to 32,767)

if(millis() - last > 250){//if time now is 250 milliseconds greater than last time
if(ledState == 0 && input == 1234){//if LED is off and button code is ok
digitalWrite(ledPin, HIGH);
}else if(ledState == 1 && input == 1234){//if LED is on and button code is ok
digitalWrite(ledPin, LOW);
}

}

mySerial.flush();//clear the serial buffer for unwanted inputs
last = millis();//reset timer
}
delay(20);//delay little for better serial communication

}